struts究竟是用哪种重定向方式的? Action中写的就是方法return mapping.findForward("Success")这个就是 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我记得可能是sendRedirect,将整个httpRequest重定向的呵呵手边没有文档,记忆中是这样 默认是forward定向,不过你可以在配置(STRUTS-CONFIG)里修改为Redirect 在struts-config.xml的action-mapping中可以配置,如下<actioninput="/security/signin.jsp"name="loginForm"path="/signin"scope="request"type="com.oreilly.struts.storefront.security.LoginAction"validate="true"><forward name="Success" path="/index.jsp" redirect="true"/><forward name="Failure" path="/security/signin.jsp" redirect="true"/></action> 默认是forward定向,当你struts-config.xml中的redirect为true的时候就是redirect 默认是forward定向,当你struts-config.xml中的redirect为true的时候就是redirect你可以看看struts的源码 使用Jquery-easyUI的人多吗 图书管理系统 用Java语言编写的 急!! 关于一个文字过滤问题 如何学习框架??? 学spring哪本书(非电子版本)好点? Swing刷新界面 tomcat发布成功,发布到weblogic却报错 帮忙估一下,做一个房地产的进、销、存的简单的软件系统,用Java语言来做,多大规模? session bean运行错误 @@@*** VCS双机无法正确监控状态 上海的J2EE程序员一般多少工资啊? 请高手帮忙!如何在jbuilder9中部署jar
input="/security/signin.jsp"
name="loginForm"
path="/signin"
scope="request"
type="com.oreilly.struts.storefront.security.LoginAction"
validate="true">
<forward name="Success" path="/index.jsp" redirect="true"/>
<forward name="Failure" path="/security/signin.jsp" redirect="true"/>
</action>
你可以看看struts的源码