struts1 传值的问题 我想把jsp页面输出的一个值,比如<bean:write name="person" property="countid"/>,传入到action中有什么办法吗?请各位大侠不令赐教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个值既然已经在Server端person对象中,在Server端想办法共享(如放到Session中)即可。 要传入action,简单,在form后面加上参数,还有一种,如果没有form,在submit提交的时候,把这个值放在hidden里面,然后document.getElementById();然后location.href <form ..... action="你的action?参数名=值"> 后台取值 request.getParameter(“参数名”)这是最简单的一种办法了。。 如果你是用POST提交,那么可以放在hidden里面!<input type="hidden" name="p" value='<bean:write name="person" property="countid'/>">如果你是用GET提交,就可以直接用问号传过去XXX.do?p=<bean:write name="person" property="countid'/> 程序员要写多少年代码才能写出房子 写出车子 写出gf hibernate 左外连接通过配置文件是怎么配的? hibernate持久化问题 ext 求解 明天去文思创新(南京)人事面谈,求经验!!! spring异常,说是bean-config.xml文件找不到,但是我用的是绝对路径了,还说找不到!!!! 过滤器 进来看看怎么样 ? 请问如何在struts的action类里使用jspsmartupload? 请问如何配置jb8的Configurations 为什么我的http server 不能用! success 进不去 求spring security cas单点登陆和tcl目录的相关资源
后台取值 request.getParameter(“参数名”)
这是最简单的一种办法了。。
<input type="hidden" name="p" value='<bean:write name="person" property="countid'/>">
如果你是用GET提交,就可以直接用问号传过去
XXX.do?p=<bean:write name="person" property="countid'/>