best way to use multiple parameters with html:link tags

2004-01-14 Thread Nathan Maves
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

Re: best way to use multiple parameters with html:link tags

2004-01-14 Thread Kris Schneider
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}

Re: best way to use multiple parameters with html:link tags

2004-01-14 Thread Nathan Maves
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

Re: best way to use multiple parameters with html:link tags

2004-01-14 Thread Kris Schneider
Because the std tags are, well, standard? ;-) Seriously, all things being equal (and it's not always obvious when they are), I opt for JSTL because it's now a standard and its expression language has been incorporated into the JSP 2.0 spec. A tag like html:link can't be replaced by JSTL because it