You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Aaron Ravenberg <ar...@benefitsxml.com> on 2001/07/26 15:57:37 UTC
and
Hi all,
I want to use the iterate tag to develop the <html:option> set for a
<html:select>, is there a way to specify the <html:option value="???" > with
the <bean:write name="list" property="value" /> tag that can be used in the
iteration of my webVendorTreeMap?
<html:select property="webVendorKey" name="webVendorKey" >
// iterate TreeMap to develop the options for the select
<logic:iterate id="list" property="webVendorTreeMap" name="FormBean">
<html:option value="???">
// use the key value from the TreeMap to set text display
<bean:write name="list" property="key" />
</html:option>
</logic:iterate>
</html:select>
Thank you,
Aaron
RE: and
Posted by Aaron Ravenberg <ar...@benefitsxml.com>.
I firgured out thx, was looking at the wrong tag description :)
- Aaron
-----Original Message-----
From: Aaron Ravenberg [mailto:aravenberg@benefitsxml.com]
Sent: Thursday, July 26, 2001 9:58 AM
To: struts-user@jakarta.apache.org
Subject: <logic:iterate> and <html:option>
Hi all,
I want to use the iterate tag to develop the <html:option> set for a
<html:select>, is there a way to specify the <html:option value="???" > with
the <bean:write name="list" property="value" /> tag that can be used in the
iteration of my webVendorTreeMap?
<html:select property="webVendorKey" name="webVendorKey" >
// iterate TreeMap to develop the options for the select
<logic:iterate id="list" property="webVendorTreeMap" name="FormBean">
<html:option value="???">
// use the key value from the TreeMap to set text display
<bean:write name="list" property="key" />
</html:option>
</logic:iterate>
</html:select>
Thank you,
Aaron