web.xml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://java.sun.com/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  5. http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  6. version="2.5">
  7. <welcome-file-list>
  8. <welcome-file>index.html</welcome-file>
  9. <welcome-file>index.jsp</welcome-file>
  10. </welcome-file-list>
  11. <error-page>
  12. <error-code>500</error-code>
  13. <location>/WEB-INF/jsp/500.jsp</location>
  14. </error-page>
  15. <filter>
  16. <filter-name>nutz</filter-name>
  17. <filter-class>org.nutz.mvc.NutFilter</filter-class>
  18. <init-param>
  19. <param-name>modules</param-name>
  20. <param-value>xyz.luxnk.lproject.MainModule</param-value>
  21. </init-param>
  22. </filter>
  23. <filter-mapping>
  24. <filter-name>nutz</filter-name>
  25. <url-pattern>/*</url-pattern>
  26. <dispatcher>REQUEST</dispatcher>
  27. <dispatcher>FORWARD</dispatcher>
  28. <dispatcher>INCLUDE</dispatcher>
  29. </filter-mapping>
  30. </web-app>