解决方案 »
- 看完Head.First.Servlets.and.JSP之后。。。关于学struts的问题
- ssh如何集成、怎么使用
- 404错误The requested resource (/ComputerEnroll/download/result.xls) is not availab
- struts2 验证
- spring mvc dao层多表查询
- Picoconntainer的几个问题
- STRUTS框架中,如何从数据库表中取数据(100条)?300分
- 怎么用Container Managed Persistence EntityBean实现对数据库的增删改,最好用jsp调用
- 散点小分,当前AJAX这么流行,为什么CSDN的页面还是刷新方式呢?
- jdbc模糊查询
- eclipse 快捷键~
- JSP页面取得List 然后又要传回到action如何解决?急急急...
<result name="success" type="chain">
<param name="actionName">viewApp</param>
</result>
</action>
<param name="actionName">action!method</param>
</result>
return otherMethod();
}
public String otherMethod(){
return "other";
}
或是设置resultType也行。
<action name="chain1" class="action.Chain1Action">
<result name="success" type="chain">
<param name="actionName">chain2</param>
</result>
</action>
<action name="chain2" class="action.Chain2Action">
<result name="success">chain.jsp</result>
<result name="input">chain.jsp</result>
</action>
[/Quote]
或
<result type="redirectAction">viewApp</result>(除非你改了struts的默认后缀或在web.xml指定了*)
应该没错的,有这个viewApp没?
<result name="success" type="chain">
<param name="actionName">viewApp</param>
</result>
</action>
用这个可以解决了,谢谢大家