http://www.cnjbb.org/thread.jsp?boardid=46&threadid=43597&pageno=1&perpage=10&mode=block here will make you more quickly learn Java! Not only give a good tutorial, but also have Java cattle to give you Develop plans and answer questions! Cnjsp.org is very good! (1) Create a Context (Tomcat / WebApp / WebWork) in Tomcat / WebApp /; add all the .jar files in Webwork_2.1.5.jar and / lib / core to Tomcat / WebApp / Webwork / Web-info / lib; (2) Modify Web.xml as follows: XML Version = "1.0" encoding = "ISO-8859-1">
! ->
public class HelloAction extends ActionSupport {String person; public String getPerson () {return person;} public void setPerson (String person) {this.person = person;} public String execute () throws Exception {if ((person == null) || (Person.Length () == 0)) Return Error; Else Return Success;}} (5) Create two JSP components: index.jsp and success.jspindex.jsp: