Multiple params with html:link tag
来源:互联网 发布:windows 7系统激活工具 编辑:程序博客网 时间:2024/05/16 19:39
question:
How to code my Struts html:link
tag such that I can apply multiple dynamic parameters?
For example, I want to achieve the following:
<a href="/DeptInfo/do/ViewDept?setID=<%=deptForm.getSetID()%>&<%=deptForm.getDeptID%>">
But I only know this much in terms of coding it with a Struts tags:
<html:link forward="ViewDept" paramName="deptForm" paramProperty="setID" paramId="setID" />
How do I get the deptID
param into this tag as well? (And by the way, is my syntax above correct for the html:link tag??
solution:
<html:html>
....
<bean:parameter id="param1" name="param1" value="0"/>
<%
java.util.HashMap params = new java.util.HashMap();
params.put("param1", param1);
params.put("param2","param2Value");
pageContext.setAttribute("paramsName", params);
%>
<html:link page="/show.do" name="paramsName" scope="page" >show.jsp</html:link>
.....
.....
</html:html>
========================================================
- Multiple params with html:link tag
- HTML link Tag
- Unterminated <html:link tag
- Link-Multiple classes
- HTML Tag
- HTML tag
- html tag
- HTML TAG
- html tag
- HTML tag
- why gcc can link objs with multiple same symbols after ar?
- LINK : warning LNK4078: multiple ".text" sections found with different attributes (40000040)
- HTML anchor link with no scroll or jump
- 总是报Unterminated <html:link tag 都是逗号惹的祸
- html:link
- html:link
- html:link
- Link inside of input tag
- 动态链接库的调试方法。
- QuickServer开发指南(6)- 远程管理支持
- 博客开通
- RegExp对象正则表达式功能用法
- QuickServer开发指南(7)- 使用和定制日志
- Multiple params with html:link tag
- QuickServer开发指南(8)- XML配置
- 在TCX中使用SQLite3
- QuickServer开发指南(9)- 数据模式和数据类型
- Linux中tar的参数解析
- 图片添加水印功能
- 安装Rational Rose Enterprise Edition 2003 破解步骤:
- PowerDesigner导入SQL生成数据模型
- 利用jxl操作excel文件