<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

<struts-config>

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

    <form-bean  name="detailForm"
                type="hansen.playground.DetailForm"/>

  </form-beans>

  <!-- ========== Global Forwards ========================================= -->
  <global-forwards>
  
    <forward name="error" path="/error.jsp"/>
    <forward name="list" path="/list.jsp"/>
    <forward name="detail" path="/detail.jsp"/>
    
  </global-forwards>
  
  <!-- ========== Action Mapping Definitions ============================== -->
  <action-mappings>

    <action   path="/list"
              type="hansen.playground.ListDVDAction"
              parameter="d:\\dvds.xml">
    </action>

    <action   path="/detail"
              type="hansen.playground.DetailDVDAction"
              name="detailForm"
              validate="false"
              scope="request">
    </action>

    <action   path="/save"
              type="hansen.playground.SaveDVDAction">
    </action>

    <action   path="/process"
              type="hansen.playground.ProcessDVDAction"
              name="detailForm"
              scope="request"
              validate="false">
        <forward name="create" path="/create.do"/>          
        <forward name="update" path="/update.do"/>          
        <forward name="delete" path="/delete.do"/>          
        <forward name="cancel" path="/cancel.do"/>          
    </action>

    <action   path="/create"
              type="hansen.playground.CreateDVDAction"
              name="detailForm"
              input="/detail.jsp"
              scope="request">
        <forward name="OK" path="/detail.jsp"/>          
    </action>

    <action   path="/update"
              type="hansen.playground.UpdateDVDAction"
              name="detailForm"
              input="/detail.jsp"
              scope="request">
       <forward name="OK" path="/detail.jsp"/>          
    </action>

    <action   path="/delete"
              type="hansen.playground.DeleteDVDAction"
              name="detailForm"
              scope="request"
              validate="false">
        <forward name="OK" path="/list.jsp"/>          
    </action>

    <action   path="/cancel"
              forward="/list.jsp">
    </action>

  </action-mappings>

</struts-config>