Files
struts2-demo/web/WEB-INF/web.xml

33 lines
995 B
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
2026-03-18 15:18:30 +08:00
<web-app 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_4_0.xsd"
version="4.0">
2026-03-18 18:12:20 +08:00
<display-name>Struts2 Demo Lab</display-name>
2026-03-18 15:18:30 +08:00
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
2026-03-18 18:12:20 +08:00
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
2026-03-18 15:18:30 +08:00
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
2026-03-18 18:12:20 +08:00
2026-03-18 15:18:30 +08:00
<error-page>
<error-code>404</error-code>
<location>/error/404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/500.jsp</location>
</error-page>
2026-03-18 18:12:20 +08:00
</web-app>