
WEB-INF.web.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <!-- This ensures all our filters go through Guice' Servlet pipeline instead of Jetty's. This is preferable because Guice's pipeline is more flexible and easier to configure using normal Java code. You should register any additional filters via a Guice ServletModule, instead of here. Typically there are more robust Sitebricks alternatives to everything that the Servlet API provides (Listener -> Aware, Servlet -> Page/Service, Filter -> Interceptor). --> <filter> <filter-name>webFilter</filter-name> <filter-class>com.google.inject.servlet.GuiceFilter</filter-class> </filter> <filter-mapping> <filter-name>webFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <listener-class>info.sitebricks.example.AppConfig</listener-class> </listener> </web-app>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy