What is ActionMapping and is the Action Mapping specified?
Action mapping contains all the deployment information for a particular Action bean.we specify action class for particular url i.e. path and diffrent target view ie forwards on to which request response will be forwarded. We also specify to which page control should go if there is validation error for ex input property of
Action mapping specifies the action in the coniguration file called struts-config.xml.
Action Mapping code:
<action-mappings> <action path="/Hello" type="com.HelloAction" name="helloForm" input="/result.jsp" scope="request" validate="true"> <forward name="success" path="/success.jsp"/> <forward name="failure" path="/error.jsp"/> </action> </action-mappings>