Action mappings are configured in the configuration file struts-config.xml under the tag <action-mapping> as follows:
[xml]
<pre><action-mappings>
<action path=”/login”
type=”login.loginAction”
name=”loginForm”
input=”/login.jsp”
scope=”request”
validate=”true”>
<forward name=”success” path=”/index.jsp”/>
<forward name=”failure” path=”/login_error.jsp”/>
</action>
</action-mappings>
[/xml]