<action-mappings>
<action path="/testAction" type="com.xxc.action.TestAction" name="TestForm" scope="request">
<forward name="success" path="/success.jsp" redirect="true"></forward>
<forward name="error" path="/error.jsp"></forward>
</action>
</action-mappings>
<forward>标签中的redirect属性表示:当action跳转到这个<forward>标签中path属性的页面时,是进行转发还是重定向。重定向会导致request作用域中的数据丢失,默认是转发也就是 redirece="false"。