• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Missing input attribute in action tag

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

While going through 1 struts application , I found that there is no input tag specified for some URL request as follows.

Here for viewUser request URL no input tag is specified.So , my question is how the User Form will be populated if there is no jsp page specified as I expecting input tag to be like /jsp/app/UserDetail.jsp



Thanks
Tanu
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the input parameter tells struts where to go if the form validation fails - it's not the 'input' jsp to the action (i don't like the choice of 'input' here). you display a jsp that has an html form and some type of submit action. when the submit is sent from the browser the struts ActionServet looks for a match in the action mapping and calls that action sending the request data - the name="myForm" parameter is the ActionForm class you created and that's where struts will place the data from the html request - saving you the trouble of getting parameters off the request.
 
    Bookmark Topic Watch Topic
  • New Topic