<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>SetCharacterEncodingFilter</filter-name>
<filter-class>com.itheima.filter.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>InitLog4JServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.InitLog4JServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>ManagerServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.ManagerServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ClientServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.ClientServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InitLog4JServlet</servlet-name>
<url-pattern>/servlet/InitLog4JServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ManagerServlet</servlet-name>
<url-pattern>/servlet/ManagerServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClientServlet</servlet-name>
<url-pattern>/servlet/ClientServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>SetCharacterEncodingFilter</filter-name>
<filter-class>com.itheima.filter.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>InitLog4JServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.InitLog4JServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>ManagerServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.ManagerServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ClientServlet</servlet-name>
<servlet-class>com.itheima.web.servlet.ClientServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>InitLog4JServlet</servlet-name>
<url-pattern>/servlet/InitLog4JServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ManagerServlet</servlet-name>
<url-pattern>/servlet/ManagerServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClientServlet</servlet-name>
<url-pattern>/servlet/ClientServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>