Web23_Listener

记得在web.xml配置<listener-class>监听器的Copy Qualified Name复制类全名</listener-class>

1 <listener-class>com.itheima.birthday.BirthdayListener</listener-class>

记得在web.xml配置<listener-class>监听器的Copy Qualified Name复制类全名</listener-class>

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 3     xmlns="http://xmlns.jcp.org/xml/ns/javaee"
 4     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
 5     id="WebApp_ID" version="3.1">
 6     <display-name>WEB23</display-name>
 7     <listener>
 8
 9         <listener-class>com.itheima.birthday.BirthdayListener</listener-class>
10
11     </listener>
12     <welcome-file-list>
13         <welcome-file>index.html</welcome-file>
14         <welcome-file>index.htm</welcome-file>
15         <welcome-file>index.jsp</welcome-file>
16         <welcome-file>default.html</welcome-file>
17         <welcome-file>default.htm</welcome-file>
18         <welcome-file>default.jsp</welcome-file>
19     </welcome-file-list>
20 </web-app>
时间: 2024-10-16 23:24:39

Web23_Listener的相关文章