This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Re populating validation.xml fields 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 "Re populating validation.xml fields" Watch "Re populating validation.xml fields" New topic
Author

Re populating validation.xml fields

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys

I have a form on my jsp file and using the ActionClass-validation.xml method to validate the form inputs. If a field has not been filled in then it will redirect back to the form. The problem is the user will have to re enter all his data. Is there a way where I can repopulate the fields that were already filled in?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If you dispatch to the form JSP (as opposed to redirect) you don't have to do anything in particular.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Re populating validation.xml fields
 
Similar Threads
difference between and validate() and validation.xml
form fields
validate() method & validation.xml
How to stop the onclick function running when onsubmit validation fail
why no errors shown for password validation in struts 1.2.4