Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_pt
CreateActions_zh
CreateManager
CreateManager_es
SpringControllers_ko
ValidationAndList




JSPWiki v2.2.33

[RSS]


Hide Menu

CreateActions


Difference between version 17 and version 16:

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]

Back to CreateActions, or to the Page History.