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 retreive value after validation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "retreive value after validation error" Watch "retreive value after validation error" New topic
Author

retreive value after validation error

sachin y deshpande
Greenhorn

Joined: May 12, 2004
Posts: 20
Hi
Am new to struts.
We have a jsp which has several dropdowns and some text fields. The values (List) in these dropdowns are retreived from the database.
When the jsp is submitted and if a validation error occurs (validation done using struts framework) the values in the dropdown are lost. What should be done to access the dropdown values (Lists), previously retreived, in the jsp.
information: We get the "No collection found" error on the jsp if the validation fails.

Thanks in advance.
sachin y deshpande
Greenhorn

Joined: May 12, 2004
Posts: 20
I also need to mention that we are using ActionForm to set the data retreived from database.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retreive value after validation error