<?xml version="1.0"?> 
 
<!DOCTYPE web-app PUBLIC 
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
    "http://java.sun.com/dtd/web-app_2_3.dtd"> 
 
<web-app> 
    <filter> 
        <filter-name>AuthenticationFilter</filter-name> 
        <filter-class> 
            miniforum.action.AuthenticationFilter 
        </filter-class> 
    </filter> 
 
    <filter-mapping> 
      <filter-name>AuthenticationFilter</filter-name> 
      <url-pattern>/*</url-pattern> 
    </filter-mapping> 
 
    <servlet> 
        <servlet-name>LoginServlet</servlet-name> 
        <servlet-class> 
            miniforum.action.LoginServlet 
        </servlet-class> 
    </servlet> 
 
    <servlet> 
        <servlet-name>AddMessageServlet</servlet-name> 
        <servlet-class> 
            miniforum.action.AddMessageServlet 
        </servlet-class> 
    </servlet> 
 
    <servlet> 
        <servlet-name>DeleteServlet</servlet-name> 
        <servlet-class> 
            miniforum.action.DeleteServlet 
        </servlet-class> 
    </servlet> 
 
    <servlet> 
        <servlet-name>LogoutServlet</servlet-name> 
        <servlet-class> 
            miniforum.action.LogoutServlet 
        </servlet-class> 
    </servlet> 
 
    <servlet-mapping> 
        <servlet-name>LoginServlet</servlet-name> 
        <url-pattern>/doLogin</url-pattern> 
    </servlet-mapping> 
 
    <servlet-mapping> 
        <servlet-name>AddMessageServlet</servlet-name> 
        <url-pattern>/doAddMessage</url-pattern> 
    </servlet-mapping> 
 
    <servlet-mapping> 
        <servlet-name>DeleteServlet</servlet-name> 
        <url-pattern>/doDelete</url-pattern> 
    </servlet-mapping> 
 
    <servlet-mapping> 
        <servlet-name>LogoutServlet</servlet-name> 
        <url-pattern>/doLogout</url-pattern> 
    </servlet-mapping> 
</web-app>
Back to Internet Programming with Java books's web site