This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using Map for logic:iterate

 
John Smith
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use Map for logic:iterate, but i can't figure it out. can someone help me out?

<form-bean name="messageOptionsForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="address" type="java.util.Map" />
</form-bean>

Map value = new HashMap();
value.put("city1", "Boston");
dynaForm.set("address", value);

value.put("city2", "New York City");
dynaForm.set("address", value);


request.setAttribute("addresses", value);


<logic:iterate id="address" name="addresses" indexId="idx">
<tr>
<td><html:radio name="address" property="value" value="address(key)"/>: <bean:write name="address" property="value"/></td>
</tr>
</logic:iterate>


Thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic