At line 13 changed 4 lines. |
* [1] Create a skeleton JSP using XDoclet |
* [2] Create a new ActionTest to test our Action |
* [3] Create a new Action |
* [4] Display the JSP in a browser and run the ActionTest |
* [1] Add XDoclet Tags to Person to generate PersonForm |
* [2] Create a skeleton JSP using XDoclet |
* [3] Create a new ActionTest to test our Action |
* [4] Create a new Action |
* [5] Display the JSP in a browser and run the ActionTest |
At line 18 changed 1 line. |
!!Create a skeleton JSP using XDoclet [#1] |
!!Add XDoclet Tags to Person to generate PersonForm [#1] |
Now let's generate our PersonForm object for Struts and our web tier. To do this, we need to add XDoclet tags to the Person.java Object to create our Struts ActionForm. In the JavaDoc for the Person.java file, add the following @struts.form tags (use User.java if you need an example): |
|
[{Java2HtmlPlugin |
|
* @struts.form include-all="true" extends="BaseForm" |
}] |
|
;:''We extend org.appfuse.webapp.form.BaseForm because it has a toString() method that allows us to call log.debug(formName) to print out a reader-friendly view of the Form object.'' |
|
!!Create a skeleton JSP using XDoclet [#2] |
At line 55 changed 1 line. |
!!Create a new ActionTest to test our Action [#2] |
!!Create a new ActionTest to test our Action [#3] |
At line 93 changed 1 line. |
!!Create a new Action [#3] |
!!Create a new Action [#4] |
At line 162 changed 1 line. |
!!Display the JSP in a browser and run the ActionTest [#4] |
!!Display the JSP in a browser and run the ActionTest [#5] |