web.xml: filter-name and filter-mapping : web.xml « javax.servlet.http « Java by API






web.xml: filter-name and filter-mapping

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

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
    <filter>
        <filter-name>log</filter-name>
        <filter-class>LogFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>log</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

</web-app>

           
       








Related examples in the same category

1.web.xml: error page with error code
2.web.xml: error page with exception type
3.web.xml: context-param
4.web.xml: mime-mapping
5.web.xml: welcome-file-list
6.web.xml: session-config timeout
7.web.xml: security-constraint
8.web.config: login-config
9.web.xml: servlet-name, init-param, servlet-mapping