Struts 1.3将未声明的值传递给mapping.FindForward

Struts 1.3将未声明的值传递给mapping.FindForward,mapping,struts-1,struts-action,Mapping,Struts 1,Struts Action,在Struts 1.3 Action类中,我们将值返回为 return mapping.findForward("success"); 如果该操作的操作标记中未定义“success”,会发生什么 <action path="/helloWorld" type="com.action.HelloWorldAction" name="helloWorldForm"> <forward name="good" path="/Good.jsp"/>

在Struts 1.3 Action类中,我们将值返回为

return mapping.findForward("success");
如果该操作的操作标记中未定义“success”,会发生什么

   <action path="/helloWorld"
    type="com.action.HelloWorldAction"
    name="helloWorldForm">
    <forward name="good" path="/Good.jsp"/>
    <forward name="bad" path="/Bad.jsp"/>
   </action>


findForward方法查找使用操作映射定义的命名转发。由于您尚未为“成功”定义转发名称,因此它应提供空白页。

您将被转发到空白页

你试的时候发生了什么?