In my experience, struts will repopulate all fields including any drop-down menus but only if they are implemented using the <html:select> tag. If you are generating the drop-downs without the help of the struts taglib then it cannot repopulate the form.
A) Are you using the struts tags for the drop-downs? B) If so does the validate function wipe out the values that would be displayed by the drop down? -----Original Message----- From: Jon Burford [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 5:48 PM To: [EMAIL PROTECTED] Subject: form validation failure and state I've got a form with text fields and drop down list boxes which is fully populated by an init action before the form is displayed. The user can then make changes and submit the form, which in turn calls the validate function on my form object. If I detect invalid input, I return one or more errors from my validate function and the errors are displayed by struts along with the form they were changing. The problem I am having is that struts seems to remember and populate all the text fields correctly when it redisplays the form with the errors, but the drop downs are empty. I know of a couple ways I could repopulate the drop downs, but I was wondering why struts remembers what's in the text fields, but not in the drop downs? Am I missing something, or is this how it works? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>