You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Syed Niaz <ni...@rediffmail.com> on 2002/02/21 15:20:16 UTC
select:option SELECTED
Hi
Iam checking for the current value of a drop down with a request parameter in my Action class.
When they are not equal ,I want to explicitly set the "selected" value of the Combo box to a specified value .
How do I do this ?
(Is it using the "option" tag?)
Can someone give me the syntax .
Thanks
Regards,
Syed Niaz
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: select:option SELECTED
Posted by keithBacon <ke...@yahoo.com>.
Don't access the parms from the request in your Action class.
Access them via the get/set methods of the struts formBean.
To select a value on your page call the setter in the formbeam passing that
value.
You should find examples in archives.
Ask again if any problem
--- Syed Niaz <ni...@rediffmail.com> wrote:
>
> Hi
>
> Iam checking for the current value of a drop down with a request parameter in
> my Action class.
>
> When they are not equal ,I want to explicitly set the "selected" value of the
> Combo box to a specified value .
>
> How do I do this ?
>
> (Is it using the "option" tag?)
>
> Can someone give me the syntax .
>
> Thanks
>
> Regards,
> Syed Niaz
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>