---
title: "How is the Action Mapping specified ?"  
description: "How is the Action Mapping specified ?"  
author: "James Smith"  
published: 2011-07-23  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1107/how-is-the-action-mapping-specified  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# 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>

## Answers

### Answer by James Smith

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>


---

Original Source: https://www.mindstick.com/interview/1107/how-is-the-action-mapping-specified

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
