Advertisement
tpeierls

web.xml for com.example.server.Main

Jan 23rd, 2012
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.         xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  4.         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  5.         id="WebApp_ID" version="2.5">
  6.  
  7.    <!-- This code is placed in the public domain by its author, Tim Peierls. -->
  8.  
  9.    <display-name>My Restlet Component</display-name>
  10.  
  11.    <listener>
  12.      <listener-class>com.example.server.Main</listener-class>
  13.    </listener>
  14.  
  15.    <filter>
  16.      <filter-name>guiceFilter</filter-name>
  17.      <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
  18.    </filter>
  19.  
  20.    <filter-mapping>
  21.      <filter-name>guiceFilter</filter-name>
  22.      <url-pattern>/*</url-pattern>
  23.    </filter-mapping>
  24.  
  25.  </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement