<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
Taken from Core Servlets and JavaServer Pages Volume II
from Prentice Hall and Sun Microsystems Press,
http://volume2.coreservlets.com/.
(C) 2007 Marty Hall, Larry Brown, and Yaakov Chaikin;
may be freely used or adapted.
-->
<!DOCTYPE struts-config PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
  "http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
  <form-beans>
    <form-bean name="orderFormBean"
               type="coreservlets.OrderFormBean"/>
  </form-beans>

  <action-mappings>
    <action path="/actions/order"
            type="coreservlets.Order"
            name="orderFormBean"
            scope="request"
            input="/forms/order-form.jsp">
      <forward name="success"
               path="/WEB-INF/results/order-confirmation.jsp"/>
    </action>
  </action-mappings>

  <message-resources parameter="MessageResources"/>

  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property
        property="pathnames"
        value="/org/apache/struts/validator/validator-rules.xml,
               /WEB-INF/validation.xml"/>
  </plug-in>
</struts-config>
