<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>

<!-- ======================================== Form Bean Definitions -->
  <form-beans>

    <!-- example
    <form-bean name="dynaValidatorForm"
        type="jp.terasoluna.fw.web.struts.form.DynaValidatorActionFormEx" >
      <form-property name="userId" type="java.lang.String"/>
    </form-bean>
    -->

  </form-beans>


<!-- ======================================== Global Exception Definitions -->
  <!-- example
  <global-exceptions>
    <exception key="sample.err.mesasge.one"
               path="/globalError.jsp"
               className="jp.terasoluna.fw.web.struts.action.ExceptionConfigEx"
               handler="jp.terasoluna.fw.web.struts.action.SystemExceptionHandler"
               type="jp.terasoluna.fw.exception.SystemException"/>
  </global-exceptions>
  -->


<!-- ======================================== Global Forward Definitions -->
  <global-forwards>
    <forward name="welcome"
             path="/welcome.do" redirect="true"/>
  </global-forwards>


<!-- ======================================== Action Mapping Definitions -->
  <action-mappings type="jp.terasoluna.fw.web.struts.action.ActionMappingEx">

    <action path="/welcome" parameter="/welcome.jsp"/>

  </action-mappings>


<!-- ======================================== Controller Definitions -->
  <controller processorClass="jp.terasoluna.fw.web.struts.action.RequestProcessorEx"/>


<!-- ======================================== Message Resouces Definitions -->
  <message-resources parameter="framework-message" />

  <message-resources
    factory="jp.terasoluna.fw.web.struts.action.PropertyMessageResourcesExFactory"
    parameter="application-message" />


<!-- ======================================== PlugIn Definitions -->
  <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation"
                  value="/WEB-INF/moduleContext.xml"/>
  </plug-in>

  <plug-in className="jp.terasoluna.fw.web.struts.plugins.ResetterPlugIn">
    <set-property
      property="resetter"
      value="jp.terasoluna.fw.web.struts.reset.ResetterImpl"/>
    <set-property
      property="resources"
      value="/WEB-INF/reset.xml"/>
    <set-property
      property="digesterRules"
      value="/WEB-INF/reset-rules.xml"/>
  </plug-in>

  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property
      property="pathnames"
      value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-ex.xml,/WEB-INF/validation.xml"/>
    <set-property
      property="stopOnFirstError"
      value="false"/>
  </plug-in>

  <plug-in className="jp.terasoluna.fw.web.struts.plugins.BLogicIOPlugIn">
    <set-property
      property="resources"
      value="/WEB-INF/blogic-io.xml"/>
    <set-property
      property="digesterRules"
      value="/WEB-INF/blogic-io-rules.xml"/>
    <set-property
      property="mapperClass"
      value="jp.terasoluna.fw.service.thin.BLogicMapper"/>
  </plug-in>

</struts-config>