<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="loginForm" type="com.yourcompany.struts.form.LoginForm" />
<form-bean name="shoperForm" type="com.yourcompany.struts.form.ShoperForm" />
<form-bean name="checkoutForm" type="com.yourcompany.struts.form.CheckoutForm" />
<form-bean name="registerForm" type="com.yourcompany.struts.form.RegisterForm" />
<form-bean name="RegisterForm" type="com.yourcompany.struts.form.RegisterForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="loginForm"
input="/form/login.jsp"
name="loginForm"
path="/login"
scope="request"
type="com.yourcompany.struts.action.LoginAction"
validate="true">
<forward name="failure" path="/form/login.jsp" />
<forward name="success" path="/shoper.do" />
</action>
<action
attribute="shoperForm"
name="shoperForm"
path="/shoper"
scope="request"
type="com.yourcompany.struts.action.ShoperAction"
validate="false">
<forward name="success" path="/form/shoper.jsp" />
</action>
<action
attribute="checkoutForm"
input="/form/checkout.jsp"
name="checkoutForm"
path="/checkout"
scope="request"
type="com.yourcompany.struts.action.CheckoutAction">
<forward name="success" path="/form/checkout.jsp" />
<forward name="goshopping" path="/shoper.do" />
<forward name="RemoveshoppingcartLogout" path="/form/login.jsp" />
</action>
<action
attribute="registerForm"
input="/form/register.jsp"
name="registerForm"
path="/register"
scope="request"
type="com.yourcompany.struts.action.RegisterAction" >
<forward name="success" path="/shoper.do" />
<forward name="failure" path="/form/register.jsp" />
</action>
</action-mappings>
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />
<plug-in className="com.yourcompany.struts.model.InitDataSource"/>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>