This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Missing input attribute in action tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Missing input attribute in action tag" Watch "Missing input attribute in action tag" New topic
Author

Missing input attribute in action tag

tanu dua
Ranch Hand

Joined: Apr 05, 2004
Posts: 145
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
Mark Manns
Greenhorn

Joined: Jul 06, 2006
Posts: 14
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Missing input attribute in action tag
 
Similar Threads
Server side validation question
Struts Buttons
logic:iterate exception null pointer exception
Can I build in Java1.4 and run on Java1.6
Validation.xml....need some help