Apache Struts Question:

Download Job Interview Questions and Answers PDF

How is the Action Mapping specified?

Struts Interview Question
Struts Interview Question

Answer:

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>

Download Struts Interview Questions And Answers PDF

Previous QuestionNext Question
What is ActionMapping?What is role of Action Class?