value is disappearing in struts

i am developing an application using struts framework

i have  2 inputs. I am doing server side validation. when it is thrwoing validation  errors the value is disappering. what can be done to avoid this. i need to display the value  even after throwing the error

Who is Participating?
You can put the Action form onto the response before doing the validation. This will ensure that you have all the inputs in the response for use.

Alternately since the same request is forwarded to the view, the same parameter value should be available in the request even after validation error.
Gurvinder Pal SinghCommented:
try doing "redirect=false" in the action mapping

Similar problem is discussed here in this link

newbiejavaAuthor Commented:
This comment has helped partially
newbiejavaAuthor Commented:
good solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.