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>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.