This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Spark in Action and have Jean-Georges Perrin on-line!
See this thread for details.
Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

will the Action class get called before the JSP page?

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=""> 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
  • Quote
  • Report post to moderator
<html:form action=""> 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.
Would you like to try a free sample? Today we are featuring tiny ads:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic