- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE struts-config PUBLIC
- "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
- "http://struts.apache.org/dtds/struts-config_1_3.dtd">
-
- <struts-config>
- <form-beans>
- <form-bean name="registerForm" type="zhiwei.deng.web.strut1.form.RegisterForm"/>
- </form-beans>
- <action-mappings>
- <action path="/register"
- forward="/WEB-INF/register.jsp"/>
- <action path="/RegisterAction"
- type="zhiwei.deng.web.strut1.action.RegisterAction"
- name="registerForm"
- scope="session">
- <forward name="success" path="/WEB-INF/success.jsp" redirect="true"/>
- </action>
- </action-mappings>
- </struts-config>
复制代码 我先转发到register.jsp,然后在重定向到success.jsp为什么不行?
分开的话都可以单独完成,甚至我把重定向改成转发也能成功,,
可是为什么我这么写就不行? 求解释 |