We can specify the action mapping in the configuration file called struts-config.xml. Struts framework creates ActionMapping object from <ActionMapping> configuration element of struts-config.xml file
<action-mappings>
<actionpath="/submit" type="submit.SubmitAction" name="submitForm" input="/submit.jsp" scope="request" validate="true">
<forwardname="success"path="/success.jsp"/>
<forwardname="failure"path="/error.jsp"/>
</action>
</action-mappings>