请求重定向到一个页面按如下配置没有问题:
<result name="goto" type="redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax</result>
加入一个参数,
<result name="goto" type= "redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax&userName=${userName}</result>
配置文件报错,按提示更改的写法如下都不好用。
<result name="goto" type= "redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax;userName=${userName}</result>
<result name="goto" type= "redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax
<param name="userName">${userName}</param>
</result>
那么传递多个参数应该如何写strutsredirect
<result name="goto" type="redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax</result>
加入一个参数,
<result name="goto" type= "redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax&userName=${userName}</result>
配置文件报错,按提示更改的写法如下都不好用。
<result name="goto" type= "redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax;userName=${userName}</result>
<result name="goto" type= "redirect">http://localhost:8080/system/sysLogin.html?method=validatorAjax
<param name="userName">${userName}</param>
</result>
那么传递多个参数应该如何写strutsredirect
解决方案 »
- org.apache.catalina.connector.RequestFacade问题
- mysql密码突然错误?如何解决?
- 我写了一个socket客户端,如何把它用jsp页面实现
- tomcat加载的时候出了问题。安装正确
- 有没有免费的既能生成统计图(如:饼图、柱状图)同时又能生成统计数据表格列表的java包?
- 关于JSP页面在LINUX下运行的问题
- 请问取消一个框架页面中的框架的URL该如何写?
- 便宜javabean出现的问题?未知异常?
- preparestatement的setBlob(int x,Blob blob)中,blob怎样构造
- tomcat运行时显示:WebappClassLoader:Lifecycle error:CL stopped...
- HttpUrlConnection登录百度问题
- JAVA怎么将用户登录的密码加密?
<-- Pass parameters (reportType, width and height) -->
<!--
The redirect-action url generated will be :
/genReport/generateReport.jsp?reportType=pie&width=100&height=100#summary
-->
<action name="gatherReportInfo" class="...">
<result name="showReportResult" type="redirect">
<param name="location">generateReport.jsp</param>
<param name="namespace">/genReport</param>
<param name="reportType">pie</param>
<param name="width">100</param>
<param name="height">100</param>
<param name="anchor">summary</param>
</result>
</action>
</package>参考下