<!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="AreaForm"
            type="faqapp.struts.forms.AreaForm"/>
        <form-bean name="TopicForm"
            type="faqapp.struts.forms.TopicForm"/>
        <form-bean name="FAQForm"
            type="faqapp.struts.forms.FAQForm"/>
        <form-bean name="FAQQueryForm"
            type="faqapp.struts.forms.FAQQueryForm"/>
    </form-beans>

    <!-- ========== Global Forward Definitions =========================== -->
    <global-forwards>
        <forward name="error" path="/Error.jsp"/>
        <forward name="showstacktrace" path="/ShowStackTrace.jsp"/>        
    </global-forwards>

    <!-- ========== Action Mapping Definitions =========================== -->
    <action-mappings>
        <action path="/area"
            type="faqapp.struts.actions.AreaAction"
            name="AreaForm"
            scope="request">
            <forward name="success" path="/Area.jsp"/>
        </action>
        <action path="/areaQuery"
            type="faqapp.struts.actions.AreaAction"
            scope="request">
            <forward name="success" path="/AreaQuery.jsp"/>
        </action>
        <action path="/topic"
            type="faqapp.struts.actions.TopicAction"
            name="TopicForm"
            scope="request">
            <forward name="success" path="/Topic.jsp"/>
            <forward name="warning" path="/Warning.jsp"/>
        </action>
        <action path="/topicQuery"
            type="faqapp.struts.actions.TopicAction"
            scope="request">
            <forward name="success" path="/TopicQuery.jsp"/>
        </action>
        <action path="/faq"
            type="faqapp.struts.actions.FAQAction"
            name="FAQForm"
            scope="request">
            <forward name="success" path="/FAQ.jsp"/>
            <forward name="warning" path="/Warning.jsp"/>
        </action>
        <action path="/faqQuery"
            type="faqapp.struts.actions.FAQAction"
            name="FAQQueryForm"
            scope="request">
            <forward name="success" path="/FAQQuery.jsp"/>
            <forward name="list" path="/FAQList.jsp"/>
            <forward name="report" path="/FAQReport.jsp"/>
            <forward name="warning" path="/Warning.jsp"/>
        </action>
        <action path="/showStackTrace"
            type="faqapp.struts.actions.ShowStackTraceAction"
            scope="request">
            <forward name="forward" path="/ShowStackTrace.jsp"/>            
        </action>
    </action-mappings>
</struts-config>
