I have created two tga-prototypes that permit to construct a Map-object
that can be used to pass multiple link-parameters to the html:link tag.
Instead of having to use scriptlets to build the Map like:
====================================================
. . .
<%
java.util.HashMap linkParmMap = new java.util.HashMap();
linkParmMap.put("someName1", someValue1);
pageContext.setAttribute("linkParmMap", linkParmMap);
%>
. . .
<logic:iterate name="records" id="recordId">
<%
linkParmMap.put("someName2", recordsId);
%>
<html:link action="/drillDown" name="linkParmMap">. . .
</logic:iterate>
. . .
====================================================
I use this:
====================================================
. . .
<fjsstruts:linkMap id="myLinkMap">
<fjsstruts:linkMapEntry name="myLinkMap" entryKey="someName">
<bean:write name="someValue" />
</fjsstruts:linkMapEntry>
<logic:iterate name="records" id="recordId">
<fjsstruts:linkMapEntry name="myLinkMap" entryKey="someName2">
<bean:write name="recordId" />
</fjsstruts:linkMapEntry>
<html:link action="/drillDown" name="myLinkMap">
<bean:write name="recordId" />
</html:link>
</logic:iterate>
</fjsstruts:linkMap>
. . .
====================================================
If there is interest I will finylize those tags and make them
available.
I think I would slightly remodel them to make them similar to the
JSTL tags...
regards
Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]