日期:2014-05-18  浏览次数:20736 次

struts html:link tag参数问题
想在一个连接中带参数给Action:

想生成的URL希望是   http://www.xxx.com/adminuser.do?opMethod=edit&userid=123,

其中userid是根据数据表中实时查询出来的一个列表中得一行,存在对象listd.id中,请问该如何将listd.id传给userid?

<html:link   action= "/adminuser.do?opMethod=edit&userid= <bean:message   key= ' <%=listd.id%> '/> > 编辑 <html:link/>

------解决方案--------------------
没错阿,用 <bean> 标签,但是我通常用 <bean:write name= "listd " property= "id "/>