This case is different from the regular use of html:option because this information is never saved to a Collection (since the validation failed)...... so this information about the dropdown menu needs has to be retrieved from the request scope or some other place....
________________________________ From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Fri 01/10/2004 2:35 PM To: Struts Users Mailing List Subject: Re: populate html:select From: "Anna Kerekes" <[EMAIL PROTECTED]> Hello, <html:select property="effectiveDay"> <option value="1" selected>1 ... > The problem is that the value selected from the drop-down menu (i.e. html:select) > before the "submit" button was hit is NOT preserved on the form You need to use Struts tags for the options if you expect the framework to pre-fill the form. Take a look at <html:option> and <html:options> which you can use with various attributes including creating the lists from a Collection. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]