wood burning stoves 2.0*
The moose likes Struts and the fly likes mutiple record validate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "mutiple record validate" Watch "mutiple record validate" New topic
Author

mutiple record validate

Ro Dowd
Greenhorn

Joined: Jul 10, 2006
Posts: 22
hi, i've got a JSP with 5 rows in it, each row represents a person object (so each row has name input textfield and age input field), there is a submit button at the bottom of the screen. the user can fill in any or all of the rows. when i click submit i want struts to validate ALL filled in fields..

Is there a way in struts i can do this (i.e have my form bean take in an array of the n objects). normally my jsp wud be only allow one record to be added at a time - the struts validator could easily be used in this scenario - but my requirement is to have 5 rows on the table.

Any suggestions would be great.thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mutiple record validate
 
Similar Threads
is it possible to do this with servlets?
Indexed properties, multiple rows submission using struts
Struts and dynamic table rows and editing?
Dynamically build a form
struts 2 posting large data