Hi I'm using struts (action and actionForms)I have a Form with several inputs fileds, when a required field is empty and the user press submit, the validation in the actionForm fails and return the forward to failure (the same jsp),the problem is that after do the forward all the fields are in blank, even the fields that the user enter correctly. What I want to do is to keep the correct fields when a validation fails.
Thanks
-
Struts, Keep fields after validation fails (1 messages)
- Posted by: Daniel c
- Posted on: July 20 2005 18:39 EDT
Threaded Messages (1)
- Struts, Keep fields after validation fails by Viktor Sadovnikov on July 21 2005 02:55 EDT
-
Struts, Keep fields after validation fails[ Go to top ]
- Posted by: Viktor Sadovnikov
- Posted on: July 21 2005 02:55 EDT
- in response to Daniel c
I assume you use either declarative validation rules or ValidatorForm#validate() method. If so, how do you forward to failure? In case of problems, the validate() method just have to return a non-empty ActionErrors