<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
    <display-name>FAQ Application</display-name>
    <distributable/>
    <welcome-file-list>
        <welcome-file>Home.jsp</welcome-file>
    </welcome-file-list>
    <!-- Standard Struts Action Servlet Configuration (with debugging) -->
    <servlet>
        <servlet-name>StrutsActionServlet</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>application</param-name>
            <param-value>ApplicationResources</param-value>
        </init-param>
        <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>detail</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>validate</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Struts Action Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>StrutsActionServlet</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <ejb-ref>
        <ejb-ref-name>ejb/AppSessionFacadeHome</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <home>faqapp.AppSessionFacadeHome</home>
        <remote>faqapp.AppSessionFacade</remote>
    </ejb-ref>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>faqrealm</realm-name>
    </login-config>
    <security-role>
        <role-name>FAQRole</role-name>
    </security-role>
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>FAQ application servlet</web-resource-name>
            <url-pattern>*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>FAQRole</role-name>
        </auth-constraint>
    </security-constraint>
</web-app>

