Google

Interview Questions Test your java skills Java API Reference Notifications Java Forums Java Examples Tell a Friend
Link to us Donate
Javagalaxy.com WWW
Subscribe Un Subscribe

Java Interview Questions on your mobileNew            

Java Interview Questions - JavaGalaxy.com

 Java Interview Questions

Back to Interview questions

AuthorMessage
JavaGalaxy

Question: How to handle multiple forms using Struts?
Question by Navata Gudapati

Answer: What I understand from your question is, You are having multiple forms in different pages and needs to
process this information to server at the last form.

e.g. Form 1, 2, 3 and 4 in 4 different web pages and process the data to server at the final web page.

It is easy to have a form that spans multiple jsp~s with struts. Make sure that your form bean is part
of the session and not the request object. Also be sure to include some type of form validation routine
that checks to make sure all of the required information has been submitted before you send the whole
form off to the server for processing.

You cannot have single web page with multiple forms and submit all of it at once. When you click on
submit button in a form only the form that has submit button will be submitted to server.

Discuss in detail



Copyright © 2002 - 2010 JavaGalaxy.com,
All Rights Reserved Advertise| Feedback| Contact us| Terms of Use| Privacy Policy|

Help us to keep serving you better.
If you find any part of this site useful please support the site by linking to us