File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Loosing Form Data with Struts Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Loosing Form Data with Struts Validation" Watch "Loosing Form Data with Struts Validation" New topic
Author

Loosing Form Data with Struts Validation

Ashish Soni
Greenhorn

Joined: May 25, 2008
Posts: 24
Hi All ,

I am having a problem with struts validation , As when ever the validator returns error my all forms value are lost.

Can some one help me to resolve this issue.

Thanks for the help in advance.

Ashish
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Are you using Struts html:text, html:checkbox, etc. tags for your input with no value attributes? If not, that's the problem.
[ June 12, 2008: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Loosing Form Data with Struts Validation