wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
 
subject: retreive value after validation error
 
Similar Threads
Question on RELOAD of JSP page AFTER facesMessage fixed
Dependent dropdowns and Multiple select swap
struts2 tag lib and the _widget phenom!
Help - question on selectOneListbox and page reloads
Double Space in dropdown causing Validation error