if your list is populated dynamically (say, using the options tag) you need to repopulate the collection that you use to populate the list options. you can do this in your reset method. if your list always uses the same values as options, you might try storing these values in the application context, and retrieve the list from there (i think the options tag will do this for you, though i'm not 100% sure) and embed it within your jsp.
the difference between the options list and the other form attributes is the other form attributes are submitted to the servlet in the HttpRequest as parameters. however, the options list is not. the only thing submitted from a select is the selectedIndex. ab -----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]>