You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Saman Ghodsian <gs...@shaw.ca> on 2003/07/21 22:03:28 UTC
Struts-layout
Saman Ghodsian
CTO
Middle Earth Technologies Ltd.
www.metca.com
Cell (604)-839-7791
Vancouver, BC
Canada
> -----Original Message-----
> From: Shyam A [mailto:struts_newbie@yahoo.com]
> Sent: Monday, July 21, 2003 1:04 PM
> To: struts-user@jakarta.apache.org
> Subject: [newbie]: Accessing labelProperty in <html:options>
>
>
> Hi,
>
> I'm using the <html:options> tag to populate a
> drop-down list from a collection.
>
> My code is as follows:
>
> <html:select property="termCode"
> onchange="submitForm(this.form)">
> <html:options
> collection="termList" property="value"
> labelProperty="label"/>
> </html:select>
>
> The property "termCode" is a string in my ActionForm
> class. I would like to access the selected value in
> the drop-down, i.e, labelProperty in my ActionClass.
> I'm not sure how it is done.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Shyam
>
> __________________________________
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org