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 Sun, 14 Mar 2004 00:00:38 GMT
weaver      2004/03/13 16:00:38

  Modified:    portal/src/webapp/WEB-INF web.xml
  Log:
  added content filter to the web.xml
  
  Revision  Changes    Path
  1.9       +48 -1     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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- web.xml	4 Feb 2004 21:47:32 -0000	1.8
  +++ web.xml	14 Mar 2004 00:00:38 -0000	1.9
  @@ -5,6 +5,53 @@
     "http://java.sun.com/dtd/web-app_2_3.dtd">
   
   <web-app>
  +	
  +  <filter>
  +    <filter-name>ContentServer</filter-name>
  +    <filter-class>org.apache.jetspeed.contentserver.ContentFilter</filter-class>
  +     <init-param>
  +        <param-name>content.directory</param-name>
  +        <param-value>
  +           WEB-INF/decorations
  +        </param-value>
  +    </init-param>
  +     <init-param>
  +        <param-name>url.hint</param-name>
  +        <param-value>
  +           content/
  +        </param-value>
  +    </init-param>
  +  </filter>
  +
  +  <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.gif</url-pattern>    
  +  </filter-mapping>
  +  <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.jpg</url-pattern>
  +  </filter-mapping>
  +  <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.jpeg</url-pattern>
  +  </filter-mapping>
  +  <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.png</url-pattern>
  +  </filter-mapping>
  +  <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.js</url-pattern>
  +  </filter-mapping>
  +  <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.html</url-pattern>    
  +  </filter-mapping>
  + <filter-mapping>
  +    <filter-name>ContentServer</filter-name>
  +    <url-pattern>*.css</url-pattern>    
  +  </filter-mapping>
  +	
   
     <servlet>
       <servlet-name>jetspeed</servlet-name>
  @@ -84,7 +131,7 @@
           <servlet-name>JetspeedContainer</servlet-name>
           <url-pattern>/container/*</url-pattern>
       </servlet-mapping>
  -
  +    
     <!-- The Usual Welcome File List -->
     <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
  
  
  

---------------------------------------------------------------------
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