jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-watchdog/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContext GetResourceTestServlet.java
Date Mon, 08 May 2000 18:33:26 GMT
craigmcc    00/05/08 11:33:26

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContext
                        GetResourceTestServlet.java
  Log:
  Correct the resource path being checked for to be a static resource.  The
  servlet container is allowed to return null, so testing for a "resource"
  that is actually a servlet execution URI will not necessarily have a resource
  URI to be returned.
  
  Revision  Changes    Path
  1.3       +4 -3      jakarta-watchdog/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContext/GetResourceTestServlet.java
  
  Index: GetResourceTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContext/GetResourceTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GetResourceTestServlet.java	1999/11/09 20:53:40	1.2
  +++ GetResourceTestServlet.java	2000/05/08 18:33:25	1.3
  @@ -1,6 +1,6 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContext/GetResourceTestServlet.java,v
1.2 1999/11/09 20:53:40 costin Exp $
  - * $Date: 1999/11/09 20:53:40 $
  + * $Header: /home/cvs/jakarta-watchdog/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContext/GetResourceTestServlet.java,v
1.3 2000/05/08 18:33:25 craigmcc Exp $
  + * $Date: 2000/05/08 18:33:25 $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -101,7 +101,8 @@
   		ServletConfig config = this.getServletConfig();
   		ServletContext context = config.getServletContext();
   
  -		String path="/servlet/tests.javax_servlet.ServletContext.GetResourceTestServlet";
  +		//		String path="/servlet/tests.javax_servlet.ServletContext.GetResourceTestServlet";
  +		String path="/WEB-INF/web.xml";
   
   		URL resourceURL = context.getResource(path);
   
  
  
  

Mime
View raw message