I have two actions one is for customer search and another is customer update. In customer search customer
action is invoked and lands in CustomerEdit.jsp
with pre populated values.
After changing the existing values i submit the form. If successfully submitted then it goes to CustomerSuccess.jsp
.
But if in case of problem or error i need to show CustomerEdit.jsp
with pre populated values. how can i achieve it.
<action name="customer"
class="net.test.action.CustomerAction">
<result name="success">CustomerEdit.jsp</result>
<result name="input">CustomerSearch.jsp</result>
</action>
<action name="customerUpdate"
class="net.viralpatel.struts2.action.CustomerAction">
<result name="success">CustomerSuccess.jsp</result>
<result name="error">CustomerEdit.jsp</result>
</action>