This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes user selection not redisplayed after ActionError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "user selection not redisplayed after ActionError" Watch "user selection not redisplayed after ActionError" New topic
Author

user selection not redisplayed after ActionError

Nina Anderson
Ranch Hand

Joined: Jul 18, 2006
Posts: 148
Hi guys,

I have a jsp form that contains textboxes, checkbox, drop-down menus and radio buttons. I'm using Struts Validation on the page.

When a users enters bad data, my Struts ActionForm class performs the validation and re-displays the page with errors message. However, the page re-display the information user enter in the textboxes, BUT NOT the checkboxes, drop-down menus and radio buttons.

How can I get the page to retain the information the user entered in the checkbox, drop-down menus and radio buttons?

Here's my code:









Please...Help!
 
 
subject: user selection not redisplayed after ActionError