Looks like this will work! Is there any reason to use the std tags vs the struts tags? (i.e. forEach vs iterate)

~N
On Jan 14, 2004, at 10:03 AM, Kris Schneider wrote:

It's not too big a deal, just reuse a single map with JSTL:

<jsp:useBean id="paramMap" class="java.util.HashMap"/>
<c:forEach var="bean" items="${beans}">
  <c:set target="${paramMap}" property="prop1" value="${bean.prop1}"/>
  <c:set target="${paramMap}" property="prop2" value="${bean.prop2}"/>
  <c:set target="${paramMap}" property="prop3" value="${bean.prop3}"/>
  <html:link action="/foo" name="paramMap">...</html:link>
</c:forEach>

Quoting Nathan Maves <[EMAIL PROTECTED]>:

I have a collection of objects that I am interating over in my jsp.  I
would like to create links to another action with a few of the
properties of the beans in the collection.  From the docs I see that
you have to use a java.util.Map if you want to have multiple params on
a html:link tag.  Is there no other way then creating a map for each
iteration of my collection?

Nathan

-- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/>

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



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



Reply via email to