portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF web.xml
Date Mon, 12 Jan 2004 18:24:16 GMT
weaver      2004/01/12 10:24:16

  Modified:    portal/src/webapp/WEB-INF web.xml
  Log:
  Added servlet mapping for the JetspeedVelocityViewServlet
  
  Revision  Changes    Path
  1.7       +21 -0     jakarta-jetspeed-2/portal/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- web.xml	6 Jan 2004 05:00:16 -0000	1.6
  +++ web.xml	12 Jan 2004 18:24:15 -0000	1.7
  @@ -31,6 +31,21 @@
       <servlet-class>org.apache.jetspeed.container.JetspeedContainerServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
     </servlet>
  +  
  +  	<!-- Define Velocity template compiler -->
  +	<servlet>
  +		<servlet-name>velocity</servlet-name>
  +		<servlet-class>org.apache.jetspeed.velocity.JetspeedVelocityViewServlet</servlet-class>
  +		<init-param>
  +			<param-name>org.apache.velocity.toolbox</param-name>
  +			<param-value>/WEB-INF/toolbox.xml</param-value>
  +		</init-param>
  +		<init-param>
  +			<param-name>org.apache.velocity.properties</param-name>
  +			<param-value>/WEB-INF/velocity.properties</param-value>
  +		</init-param>
  +		<load-on-startup>10</load-on-startup>
  +	</servlet>
   
     <servlet-mapping>
          <servlet-name>
  @@ -52,6 +67,12 @@
           <servlet-name>JetspeedContainer</servlet-name>
           <url-pattern>/container/*</url-pattern>
       </servlet-mapping>
  +    
  +    <!-- Map *.vm files to Velocity  -->
  +	<servlet-mapping>
  +		<servlet-name>velocity</servlet-name>
  +		<url-pattern>*.vm</url-pattern>
  +	</servlet-mapping>	
   
   
       <servlet-mapping>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message