0

In Struts 1.3 Action class, we return value as

return mapping.findForward("success");

What will happen if "success" is undefined in the action tag for that action

   <action path="/helloWorld"
    type="com.action.HelloWorldAction"
    name="helloWorldForm">
    <forward name="good" path="/Good.jsp"/>
    <forward name="bad" path="/Bad.jsp"/>
   </action>
Roman C
  • 49,761
  • 33
  • 66
  • 176
Kaushik Lele
  • 6,439
  • 13
  • 50
  • 76

2 Answers2

0

findForward method looks for a named forward that you defined with the action mapping. Since you have not defined forward name for "success", it should give blank page.

ritesh
  • 907
  • 3
  • 11
  • 31
0

You will be forwarded to a blank page.

Susie
  • 5,038
  • 10
  • 53
  • 74