HOW IS THE ACTION MAPPING SPECIFIED ?

James Smith

Total Post:79

Points:395
Posted by  James Smith
Java 
 1886  View(s)
Ratings:
Rate this:
  1. James Smith

    Post:79

    Points:395
    How is the Action Mapping specified ?

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!