Topic: Struts中在一个http地址后面带多个参数怎么带? |
Print this page |
1.Struts中在一个http地址后面带多个参数怎么带? | Copy to clipboard |
Posted by: adelejxsx Posted on: 2003-08-27 08:42 如题,假如我想把 <a href="registry.jsp?id=34222&username=yzld&shownum=10>Registry</a>改成Struts的<html:link page=".....">Registry</html:link>标签该怎么做 |
2.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: adelejxsx] | Copy to clipboard |
Posted by: richart Posted on: 2003-08-27 17:17 look like this: <html:link page="xxx.do?state=xxx" paramId="testId" paramName="testFormName" paramProperty="testProperty">Registry</html:link> |
3.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: richart] | Copy to clipboard |
Posted by: adelejxsx Posted on: 2003-08-28 08:39 richart wrote: 这好像只能带两个参数,如果要带三个参数呢? 还有一个问题是:上面有一个参数是state,如果这个带数的值是一个变量该怎么办?用<html:link page="xxx.do?state=<%=xxx=%>" ....好像不能输出,得不到结果? |
4.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: adelejxsx] | Copy to clipboard |
Posted by: wuliang Posted on: 2003-08-28 09:32 有什么理由要用<html:link>呢? 我用<html:errors/>——确实比自己写简单 <bean:write>——有对html符号的过滤 其他的老觉的没什么价值 |
5.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: adelejxsx] | Copy to clipboard |
Posted by: seeuxp Posted on: 2003-09-05 09:11 多看看书,呵呵。 <% java.util.HashMap myMap = new java.util.HashMap(); myMap.put("username", new String("username")); myMap.put("password", new String("password")); pageContext.setAttribute("userInfo", myMap); %> <html:link page="logon.do" name="userInfo"> logon </html:link> |
6.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: wuliang] | Copy to clipboard |
Posted by: hitaco Posted on: 2003-10-21 20:30 有很多的页面的requirement,用户的选择要保持,这样的话,form就要记录在session中,用struts html tag,可以方便的维护session中的数据。 wuliang wrote: |
7.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: adelejxsx] | Copy to clipboard |
Posted by: 老刀 Posted on: 2003-11-13 19:03 建议不在要用STRUTS中的链接,如果你有多个参数的话,STRUTS的标签很多都不够人性化 |
8.Re:Struts中在一个http地址后面带多个参数怎么带? [Re: adelejxsx] | Copy to clipboard |
Posted by: dany Posted on: 2003-11-13 19:51 关于<html:link>的name属性代表的意义: The name of a JSP bean that contains a Map representing the query parameters (if property is not specified), or a JSP bean whose property getter is called to return a Map (if property is specified). 关于<html:link>的property属性代表的意义: The name of a property of the bean specified by the name attribute, whose return value must be a java.util.Map containing the query parameters to be added to the hyperlink. You must specify the name attribute if you specify this attribute. 呵呵,想传多少个参数啊 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |