wood burning stoves 2.0*
The moose likes Struts and the fly likes will the Action class get called before the JSP page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "will the Action class get called before the JSP page?" Watch "will the Action class get called before the JSP page?" New topic
Author

will the Action class get called before the JSP page?

kay lin
Ranch Hand

Joined: May 20, 2004
Posts: 132
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

Joined: Feb 05, 2003
Posts: 4727

<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.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: will the Action class get called before the JSP page?
 
Similar Threads
No Getter method for LastName property of bean
Frustration with struts. Please help!!!
Cannot retrieve mapping for action
Struts Help
Cannot find ActionMappings or ActionFormBeans collection