Hi Johnathan, I think you are getting confused with how it actually selects the value that the user intended.
Think of it this way: <html:select property="type"> <html:options collection="someCollectionYouHaveSetInTheScope" property="value" labelProperty="label"/> </html:select> This means that when the form is submitted, the "type" parameter is sent to your action class with the "value" that they selected from the options. Because this is struts, if your FormBean happens to have a "getType()/setType()" method on it, that property will be set at form submission, and subsequently the <html:select> tag will "get" the value of that property and make sure that the corresponding option is selected in in the list. The options tag is simple, you set the collection attribute to a collection of objects which possess a "getValue()" and a "getLabel()" method, the values of these methods are used in the resulting <option> tag for the "value" attribute and the text that goes between the <option></option> tags respectively.. Make sense? Craig. ----- Original Message ----- From: "Smith, Johnathan M." <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 09, 2002 1:01 PM Subject: RE: Select Options > Can you please help me some more with details > > -----Original Message----- > From: Carl Bacher [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 12:59 PM > To: Struts Users Mailing List > Subject: Re: Select Options > > > <html:select property="name_of_property_in_form_bean"> > > Smith, Johnathan M. wrote: > > >I am trying to find out how to make a select (dropdown list) selected a > >option at the time of the page is loaded. Sample > > > >1) I selected a option from my dropdown box and and click submit button > >2) The FormAction find that I did not entered all the requested text boxs > >and it redisplays the page > > > >at this time I would like the option I selected to be reselected! > > > > -- > 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]>

