首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

struts html:link tag参数有关问题

2011-12-30 
struts html:link tag参数问题想在一个连接中带参数给Action:想生成的URL希望是http://www.xxx.com/adminu

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 "/>

热点排行