`

多参数传递

阅读更多

一是不用<html:link>标签改用<a href="aaa.do?para=<bean:write name="sss" property="codename"/>&ddd=<bean:write name="sss" property="ddd"/>"></a>
二是用hashmap
<bean:define id="a" name="sss" property="codename" toScope="page"/>
<bean:define id="b" name="sss" property="ddd" toScope="page"/>
<%
HashMap map = new HashMap();
map.put("para",a);
map.put("ddd",b);
pageContext.setAttribute("map",map);
%>
<html:link page="aaa.do" name="map">
   <bean:write name="sss" property="codename"/>
</html:link>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics