- <html:link action="/myAction" paramId="id" paramName="reqAttrId">LinkName</html:link>
<a href="/context/module/editPrivilege.do?id=8">EDIT</a>
8 is request.getAttribute("attrId")
- <html:link action="/myAction" paramId="id" paramName="idBean" paramProperty="id">LinkName</html:link>
<a href="/context/module/editPrivilege.do?id=8">EDIT</a>
8 is [request|session|application].getAttribute("idBean").getId()
- Multiple Parameters
<%
java.util.HashMap newValues = new java.util.HashMap();
newValues.put("floatProperty", new Float(444.0));
newValues.put("intProperty", new Integer(555));
newValues.put("stringArray", new String[] { "Value1", "Value2", "Value3" });
pageContext.setAttribute("newValues", newValues);
%>
<html:link action="myAction" name="newValues">Float, int, and stringArray via name (Map)</html:link>
http://localhost:8081/vic/editPrivilege.do?
stringArray=Value1&stringArray=Value2&stringArray=Value3&floatProperty=444.0&intProperty=555
<%
java.util.HashMap newValues = new java.util.HashMap();
newValues.put("floatProperty", new Float(444.0));
newValues.put("intProperty", new Integer(555));
newValues.put("stringArray", new String[] { "Value1", "Value2", "Value3" });
pageContext.setAttribute("newValues", newValues);
%>
<html:link action="myAction" name="newValues">Float, int, and stringArray via name (Map)</html:link>
http://localhost:8081/vic/editPrivilege.do?
stringArray=Value1&stringArray=Value2&stringArray=Value3&floatProperty=444.0&intProperty=555
<%
java.util.HashMap newValues = new java.util.HashMap();
newValues.put("floatProperty", new Float(444.0));
newValues.put("intProperty", new Integer(555));
newValues.put("stringArray", new String[] { "Value1", "Value2", "Value3" });
pageContext.setAttribute("newValues", newValues);
%>
<html:link action="myAction" name="newValues">Float, int, and stringArray via name (Map)</html:link>
http://localhost:8081/vic/editPrivilege.do?
stringArray=Value1&stringArray=Value2&stringArray=Value3&floatProperty=444.0&intProperty=555