If you use the struts option tag it will get the
selected value from the formbean when the page is
displayed (reverse of the way it sets the selected
value when the form is submitted).
Then you have full control!
Keith. 


--- Tom Watkins <[EMAIL PROTECTED]> wrote:
> I have a jsp using the <strutshtml:select> tag with
> nested <option> tags. I
> need to give the drop down list an initial value
> first time it is seen which
> I have done using <option selected value="blah">...
> 
> However, when page validation fails I need the list
> to display the user
> selected value but obviously it reverts to the
> <option> tag which I labelled
> "selected".
> 
> I can see no obvious way of doing this (although I
> am sure there is one)
> 
> Can anyone help?
> 
> Tom
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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

Reply via email to