Thanks Mark,  I don't know how I missed that tag.

Melonie, if I understand you correctly,  I am not using hidden fields and I
get back the key value pair in the form associated with the action class,
The collection I am referencing is separate from the form. The form does not
contain a list just the ( select property = "balh" )  select property
properties.

Hope that was helpful.



-----Original Message-----
From: Brown, Melonie S. - Contractor [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, January 08, 2003 5:50 AM
To: [EMAIL PROTECTED]
Subject: RE: nested tags

Is there a way to get back the key/value pair that was selected (without
using hidden fields)?

Melonie Brown



-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 08, 2003 3:57 AM
To: Struts Users Mailing List
Subject: Re: nested tags


Something along these lines might help....

<html:select property="myname">
<html:options
        collection="myarray"
        property="value"  />
</html:select>


if you've a map you can use

<html:select property="myname">
<html:options
        collection="myhash"
        property="key"
        labelProperty="value" />
</html:select>


cheers mark


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

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

Reply via email to