• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin

Selected values

Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic