Home > DeveloperSection > Interviews > How is the Action Mapping specified ?

Posted on    July-23-2011 7:52 AM

 Java Java 
 1 Answer(s)
  1815  View(s)
Rate this:

James Smith

Total Post:79

Posted on    July-23-2011 12:00 AM

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> <action path="/submit"    type="submit.SubmitAction"         name="submitForm"         input="/submit.jsp"         scope="request"         validate="true">  <forward name="success" path="/success.jsp"/>  <forward name="failure" path="/error.jsp"/> </action></action-mappings>

Don't want to miss updates? Please click the below button!

Follow MindStick