Set the addressstate property of your form bean in your action prior to
forwarding it to your page.

I'm guessing you can use the same action that puts the states object
in the request to go ahead and set the form bean, too.

[EMAIL PROTECTED] writes:

> Hi folks:
> 
> I wrote a bean to "preload" a collection of valid states (per-se) that will
> be incorporated into my JSP page as such:
>                          <td>
>                               <html:select property="addressstate" size
> ="1">
>                                    <html:options collection="states"
> property="value"
>                                          labelProperty="label"/>
>                               </html:select>
> 
>                          </td>
> 
> Here's my question:
> All the time, the first entry is ALABAMA.
> 
> I'd like to be able to load a record from the database and have that
> record's state be "selected" using the above construct.
> So if the record's state is Illinios, I'd like for Illinois to be displayed
> in the list but they could then update the combobox (in which case I'd save
> it to the database).     Is there an easy way to do this with the above
> construct that I am using?
> 
> thanks,
> Theron
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- 
Jim Crossley
http://www.lads.com/~jim

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to