Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

will the Action class get called before the JSP page?

 
kay lin
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi: here is part of the struts-config.xml file.



and here is the JSP page


The <html:form action="submit.do"> will make the SubmitAction class to take care of the request because path="/submit", correct? My question is let us say if you display the JSP page in a browser, then which executes first, the SubmitAction class or the actual JSP page? please let me know.

Many thanks...

[ edited to disable smilies -ds ]
[ May 27, 2004: Message edited by: Dirk Schreckmann ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:form action="submit.do"> does not make the Action class. All that tag does is point to the ActionMapping to look for the ActionForm used for prepopulating fields.

The Action does not come into the picture until after the jsp is submitted and the validation has passed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic