If you have the parameters stored in a java.util.Map object, simply specifying the name of that object as the "name" attribute to html:link (without any paramId/paramName/paramProperty attributes, will do the trick for you.

If your bean list isn't a java.util.Map, you can create one on the fly in your JSP like so:

<jsp:useBean id="varName" class="java.util.HashMap"/>
<c:set target="${varName}" property="param1" value="value1"/>
<c:set target="${varName}" property="param2" value="value2"/>

where param1/2 are the names you want the parameters passed as in the query string, and value1/2 are the values (which can be populated with EL or as the text body of the c:set statement)

After doing this, the "name" attribute to html:link would simply be "varName" - which, of course, you can choose to be whatever you want.

Hope this helps!
Brice

javen fang wrote:

I have a bean list that have two property id / name

code:
------------------------------------------------------

<html:link action="next.do" paramId="first"
paramName="list" paramProperty="id"> next action
</html:link>

------------------------------------------------------


And how can I pass the second parameter name after the action next.do?? Thanks.



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


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




-- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc.



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



Reply via email to