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 29 and version 28:

At line 38 changed 1 line.
* Execute __ant -Dform.name=PersonForm__ to generate two files in extras/jspgen/build:
* Execute __ant -Dform.name=PersonForm__ to generate three files in extras/jspgen/build:
At line 40 changed 1 line.
** personForm.jsp (skeleton JSP file)
** personForm.jsp (skeleton JSP file for viewing a single Person)
** PersonFormList.jsp (skeleton JSP file for viewing a list of Persons)
At line 50 changed 1 line.
* Copy personForm.jsp to web/personForm.jsp. ''Notice that the new filename's first character is lowercase.''
* Copy personForm.jsp to web/personForm.jsp. Copy PersonFormList.jsp to web/personFormList.jsp. ''Notice that each of the new filename's first character is lowercase.''
At line 52 changed 1 line.
We copy the JSP to the ''web'' folder instead of ''web/pages'' because the ''pages'' directory ends up in ''WEB-INF/pages'' when the application is packaged into a [WAR|http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC3.html#69310] file. This is a [recommended practice|http://husted.com/struts/catalog.html] when building secure web applications.
We copy the JSPs to the ''web'' folder instead of ''web/pages'' because the ''pages'' directory ends up in ''WEB-INF/pages'' when the application is packaged into a [WAR|http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC3.html#69310] file. This is a [recommended practice|http://husted.com/struts/catalog.html] when building secure web applications.
At line 60 changed 1 line.
At this point, you won't be able to view this JSP in your browser because the <html:form> tag in personForm.jsp has ''action="savePerson"'' - and this action-mapping doesn't exist (yet) in struts-config.xml. You can try it yourself (cd ../.. first) by setting up AppFuse on Tomcat using __ant setup-db setup-tomcat deploy__.
At this point, you won't be able to view the JSP in your browser because the <html:form> tag in personForm.jsp has ''action="savePerson"'' - and this action-mapping doesn't exist (yet) in struts-config.xml. You can try it yourself (cd ../.. first) by setting up AppFuse on Tomcat using __ant setup-db setup-tomcat deploy__.

Back to CreateActions, or to the Page History.