You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Phani <ph...@yahoo.com> on 2004/10/06 16:36:12 UTC
Passing key of a Treeap as a parameter in
Ok, My Code snippet looks like this.
<logic:iterate name="varAssumptionsForm"
property="varAssumptionsSettingsMap" id="map">
<tr>
<td>
<TABLE border="1" cellpadding="0"
cellspacing="0" style="BORDER-COLLAPSE: collapse"
bordercolor="#111111" width="800">
<TR>
<TD align="center" width="200"><span
class="normaltxt"><bean:write name="map"
property="key"/>
</span></TD>
<logic:iterate name="map" property="value"
id="item">
<TD align="center" width="200"><span
class="normaltxt"><%=item%></span></TD>
</logic:iterate>
<TD align="center" width="200"><span
class="normaltxt">
<html:link
href="varAssumptions.do?action=View&name=${map.key}">view</html:link>
</span></TD>
</TR>
</TABLE>
</td>
</tr>
</logic:iterate>
I have a map, & for each key in the map I have an
array list as a value. So I am using two iterates.
I need to display all the elements in the map, the key
& corresponding elements in a table.
Evrything works fine except the <html:link> tag.
For this line: <html:link
href="varAssumptions.do?action=View&name=${map.key}">view</html:link>
When I click on "view", the key of the map has to be
passed as parameter.
I am not able to get the syntax right for passing the
parameter.
Thanks.
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org