LJ Archive

Listing 2. Modified Version of web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
    <servlet>
        <servlet-name>
            welcome
        </servlet-name>
        <servlet-class>
            atf.presentation.WelcomeServlet
        </servlet-class>
     </servlet>
     <servlet>
        <servlet-name>
            redirect
        </servlet-name>
        <servlet-class>
            atf.presentation.RedirectServlet
        </servlet-class>
    </servlet>
     <servlet>
        <servlet-name>
            foo
        </servlet-name>
        <servlet-class>
            atf.presentation.Foo
        </servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>
            welcome
        </servlet-name>
        <url-pattern>
            /welcome
        </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>
            redirect
        </servlet-name>
        <url-pattern>
            /redirect
        </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>
            foo
        </servlet-name>
        <url-pattern>
            /foo
        </url-pattern>
    </servlet-mapping>
</web-app>
LJ Archive