DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Pass More Than One Parameter To Struts Action Using Html:link Tag

05.25.2006
| 25213 views |
  • submit to reddit
        
<bean:define id="param1" name="record" property="id"/>
<bean:define id="param2" name="record" property="language_id" />
<%
	java.util.HashMap params = new java.util.HashMap();
	params.put("record_id", param1);
	params.put("language_id", param2);
	pageContext.setAttribute("tempParams", params);
%>
<html:link action="PDPSelectTabs" name="tempParams">
	Hoja
</html:link>