×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Nhan Tran
Added: Aug 9, 2021 3:01 AM
Views: 3690
Tags: no tags
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
  3.     <filter>
  4.         <filter-name>DispatcherFilter</filter-name>
  5.         <filter-class>nhantv.filter.DispatcherFilter</filter-class>
  6.     </filter>
  7.     <filter-mapping>
  8.         <filter-name>DispatcherFilter</filter-name>
  9.         <url-pattern>/*</url-pattern>
  10.     </filter-mapping>
  11.     <listener>
  12.         <description>ServletContextListener</description>
  13.         <listener-class>nhantv.listener.ContextListener</listener-class>
  14.     </listener>
  15.     <servlet>
  16.         <servlet-name>AccountLoginServlet</servlet-name>
  17.         <servlet-class>nhantv.controller.AccountLoginServlet</servlet-class>
  18.     </servlet>
  19.     <servlet-mapping>
  20.         <servlet-name>AccountLoginServlet</servlet-name>
  21.         <url-pattern>/AccountLoginServlet</url-pattern>
  22.     </servlet-mapping>
  23.     <session-config>
  24.         <session-timeout>
  25.             30
  26.         </session-timeout>
  27.     </session-config>
  28.     <context-param>
  29.         <param-name>param</param-name>
  30.         <param-value>/log.txt</param-value>
  31.     </context-param>
  32.     <context-param>
  33.         <param-name>log4j-config-location</param-name>
  34.         <param-value>WEB-INF/log4j.properties</param-value>
  35.     </context-param>
  36. </web-app>
  37.