In this lesson, you will lean how to edit an action mapping. Action mapping represents an action that gets executed, and in that execution, determines the correct path that the application will take.
Action mapping is defined in the Struts configuration file, generally referencing a Java class , but sometimes it simply forwards the request to another page. When user codes in the JSP, they can simply reference the action mapping to trigger the invocation of the Action.
The action class contains an execute method that will get called when the form is submitted. This is where you supply the logic to determine whether the calculated result is "success" (defined by the forward pointing to the output.jsp), or "failure" (defined by the forward pointing back to index.jsp)To edit an action mapping:
Your action class now contains an execute method that will get called when the form is submitted. You have supplied the logic to determine whether the calculated result is "success" (defined by the forward pointing to the output.jsp), or "failure" (defined by the forward pointing back to index.jsp).