I have a form which has got 2 multiple select boxes and a dropdown box and 2 mandatory text fields.
I feed these select boxes and the dropdown boxes by using the values from the session variables set in my action classes when the form loads and values are set by using the regular java code in the JSP.
The text boxes are mandatory fields(struts tags). Am using the regular action forms in my struts config and have the beans for these text boxes.
When I transfer values fom one select box to another and change the selection in the drop down box, the form should alert me that the mandatory fields are missing.It works perfectly fine and error is displayed in the secreen, but the selections I made for the select and dropdown reverts back to the original values..
Is there a way for me to retain the selected values for those boxes...I understand that the Validation class obstruts the form from submitting and what ever original value was set in the session will be displayed......but is there any way to get the user selected values back.
Pls its urgent
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop