jakarta-commons  

cvs commit: jakarta-commons/cactus/conf/sample/conf/test/share cactus.properties web.xml

vmassol
Fri, 07 Sep 2001 08:50:12 -0700

vmassol     01/09/07 09:09:23

  Added:       cactus/conf/sample/conf/test/servlet22 cactus.properties
                        web.xml
               cactus/conf/sample/conf/test/servlet23 cactus.properties
                        web.xml
  Removed:     cactus/conf/sample/conf/test/share cactus.properties web.xml
  Log:
  these files are now Servlet API dependent (because Filters only exist for Servlet 
API 2.3)
  
  Revision  Changes    Path
  1.1                  
jakarta-commons/cactus/conf/sample/conf/test/servlet22/cactus.properties
  
  Index: cactus.properties
  ===================================================================
  # Configuration file for Cactus.
  
  # Each project using Cactus need to have such a file put in the client side
  # CLASSPATH (Meaning the directory containgin this file should be in the client
  # side CLASSPATH, not the file itself of course ... :) )
  
  # Defines the URLs that will be used by Cactus to call it's redirectors.
  # You need to specify in these URLs the webapp context that you use for your
  # application. In the example below, the context is "test".
  
  # Servlet Redirector. Used by ServletTestCase test cases.
  cactus.servletRedirectorURL = http://localhost:@test.port@/test/ServletRedirector/
  
  # JSP Redirector. Used by JspTestCase test cases.
  cactus.jspRedirectorURL = http://localhost:@test.port@/test/JspRedirector/
  
  
  
  1.1                  jakarta-commons/cactus/conf/sample/conf/test/servlet22/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>
  
  <web-app>
  
      <servlet>
          <servlet-name>ServletRedirector</servlet-name>
          
<servlet-class>org.apache.commons.cactus.server.ServletTestRedirector</servlet-class>
          <init-param>
            <param-name>param1</param-name>
            <param-value>value1 used for testing</param-value>
          </init-param>
      </servlet>
  
      <servlet>
          <servlet-name>JspRedirector</servlet-name>
          <jsp-file>/test/redirector.jsp</jsp-file>
          <init-param>
            <param-name>param1</param-name>
            <param-value>value1 used for testing</param-value>
          </init-param>
      </servlet>
  
      <servlet-mapping>
          <servlet-name>ServletRedirector</servlet-name>
          <url-pattern>/ServletRedirector/</url-pattern>
      </servlet-mapping>
  
      <servlet-mapping>
          <servlet-name>JspRedirector</servlet-name>
          <url-pattern>/JspRedirector/</url-pattern>
      </servlet-mapping>
  
  </web-app>
  
  
  
  1.1                  
jakarta-commons/cactus/conf/sample/conf/test/servlet23/cactus.properties
  
  Index: cactus.properties
  ===================================================================
  # Configuration file for Cactus.
  
  # Each project using Cactus need to have such a file put in the client side
  # CLASSPATH (Meaning the directory containgin this file should be in the client
  # side CLASSPATH, not the file itself of course ... :) )
  
  # Defines the URLs that will be used by Cactus to call it's redirectors.
  # You need to specify in these URLs the webapp context that you use for your
  # application. In the example below, the context is "test".
  
  # Servlet Redirector. Used by ServletTestCase test cases.
  cactus.servletRedirectorURL = http://localhost:@test.port@/test/ServletRedirector/
  
  # JSP Redirector. Used by JspTestCase test cases.
  cactus.jspRedirectorURL = http://localhost:@test.port@/test/JspRedirector/
  
  # Filter Redirector. Used by FilterTestCase test cases.
  cactus.filterRedirectorURL = http://localhost:@test.port@/test/FilterRedirector/
  
  
  
  1.1                  jakarta-commons/cactus/conf/sample/conf/test/servlet23/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
  
  <web-app>
  
      <filter>
          <filter-name>FilterRedirector</filter-name>
          
<filter-class>org.apache.commons.cactus.server.FilterTestRedirector</filter-class>
      </filter>
  
      <filter-mapping>
          <filter-name>FilterRedirector</filter-name>
          <url-pattern>/FilterRedirector/</url-pattern>
      </filter-mapping>
  
      <servlet>
          <servlet-name>ServletRedirector</servlet-name>
          
<servlet-class>org.apache.commons.cactus.server.ServletTestRedirector</servlet-class>
          <init-param>
            <param-name>param1</param-name>
            <param-value>value1 used for testing</param-value>
          </init-param>
      </servlet>
  
      <servlet>
          <servlet-name>JspRedirector</servlet-name>
          <jsp-file>/test/redirector.jsp</jsp-file>
          <init-param>
            <param-name>param1</param-name>
            <param-value>value1 used for testing</param-value>
          </init-param>
      </servlet>
  
      <servlet-mapping>
          <servlet-name>ServletRedirector</servlet-name>
          <url-pattern>/ServletRedirector/</url-pattern>
      </servlet-mapping>
  
      <servlet-mapping>
          <servlet-name>JspRedirector</servlet-name>
          <url-pattern>/JspRedirector/</url-pattern>
      </servlet-mapping>
  
  </web-app>
  
  
  
  • cvs commit: jakarta-commons/cactus/conf/sample/conf/test/share cactus.properties web.xml vmassol