You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sloan Seaman <sl...@sgi.net> on 2003/07/15 21:37:40 UTC
html:select
If a user selects something from a html:select field and the next time the pages loads I want to get the value that they selected, how do I go about do this?
I know that if I used <html:option> struts would select the correct option for me, but in my case the <option> tags get populated everytime by javascript so I need to get the selected option value from the bean that was set by struts...
Thanks!!
--
Sloan
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
Re: html:select
Posted by "Dhruva B. Reddy" <sl...@yahoo.com>.
Use the "name" attribute on "html:select" to refer to a bean which
contains this property (as described by the "property" attribute).
--- Sloan Seaman <sl...@sgi.net> wrote:
> If a user selects something from a html:select field and the next
> time the pages loads I want to get the value that they selected, how
> do I go about do this?
>
> I know that if I used <html:option> struts would select the correct
> option for me, but in my case the <option> tags get populated
> everytime by javascript so I need to get the selected option value
> from the bean that was set by struts...
>
> Thanks!!
>
> --
> Sloan
>
>
>
________________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
>
________________________________________________________________________
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org