• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

will the Action class get called before the JSP page?

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic