wood burning stoves 2.0*
The moose likes Struts and the fly likes Selected values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Selected values" Watch "Selected values" New topic
Author

Selected values

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi,

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

Thx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selected values