SHARE
TWEET

Untitled

a guest Nov 23rd, 2015 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
  5.         version="3.1">
  6.  
  7.     <servlet>
  8.  
  9.         <servlet-name>VelocityServlet</servlet-name>
  10.         <servlet-class>VelocityServlet</servlet-class>
  11.  
  12.     </servlet>
  13.  
  14.     <servlet-mapping>
  15.  
  16.         <servlet-name>VelocityServlet</servlet-name>
  17.         <url-pattern>/velocity.service</url-pattern>
  18.  
  19.     </servlet-mapping>
  20.  
  21.     <!--    mapping all .vm files to velocity servlets  -->
  22.  
  23.     <servlet>
  24.  
  25.         <servlet-name>velocity</servlet-name>
  26.         <servlet-class>org.apache.velocity.tools.view.VelocityViewServlet</servlet-class>
  27.  
  28.         <!--    load my toolbox -->
  29.  
  30.         <init-param>
  31.             <param-name>org.apache.velocity.toolbox</param-name>
  32.             <param-value>/WEB-INF/toolbox.xml</param-value>
  33.         </init-param>
  34.  
  35.     </servlet>
  36.  
  37.     <servlet-mapping>
  38.  
  39.         <servlet-name>velocity</servlet-name>
  40.         <url-pattern>*.vm</url-pattern>
  41.  
  42.     </servlet-mapping>
  43.  
  44.     <!--    session timeout -->
  45.  
  46.     <session-config>
  47.  
  48.         <session-timeout>
  49.             30
  50.         </session-timeout>
  51.  
  52.     </session-config>
  53.  
  54.     <!--    welcome file    -->
  55.  
  56.     <welcome-file-list>
  57.  
  58.         <welcome-file>velocity.service</welcome-file>
  59.  
  60.     </welcome-file-list>
  61.  
  62. </web-app>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top