<result> element is inside the action
element, depends on the value returned by the action method, specific result
action is executed. An action element can have multiple result elements.
<action name="numberCheck" class="NumberCheckAction"> <result name="success">/success.jsp</result> <result name="failure">/failure.jsp</result> </action>
In
the above scenario, if action method returns “success”, then success.jsp is
displayed to client. If action method returns “failure”, then failures.jsp is
displayed to client. The name element of result element maps to the return
value of the action method.
No comments:
Post a Comment