jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlu...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper HttpServletResponseWrapperEncodeURLTestServlet.java
Date Thu, 20 Dec 2001 15:53:01 GMT
rlubke      01/12/20 07:53:01

  Modified:    src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper
                        HttpServletResponseWrapperEncodeURLTestServlet.java
  Log:
  Removed unneccessary call to request.getSession().
  
  Revision  Changes    Path
  1.2       +3 -6      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java
  
  Index: HttpServletResponseWrapperEncodeURLTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HttpServletResponseWrapperEncodeURLTestServlet.java	2001/12/20 01:03:14	1.1
  +++ HttpServletResponseWrapperEncodeURLTestServlet.java	2001/12/20 15:53:01	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java,v
1.1 2001/12/20 01:03:14 rlubke Exp $ 
  - * $Revision: 1.1 $
  - * $Date: 2001/12/20 01:03:14 $
  + * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet_http/HttpServletResponseWrapper/HttpServletResponseWrapperEncodeURLTestServlet.java,v
1.2 2001/12/20 15:53:01 rlubke Exp $ 
  + * $Revision: 1.2 $
  + * $Date: 2001/12/20 15:53:01 $
    *
    * ====================================================================
    * The Apache Software License, Version 1.1
  @@ -71,14 +71,11 @@
   public class HttpServletResponseWrapperEncodeURLTestServlet extends HttpServlet {
   
       public void service ( HttpServletRequest request, HttpServletResponse response ) throws
ServletException, IOException {
  -
           String expectedResult = "/HttpServletResponseWrapperRedirectedTest";
  -        HttpSession session = request.getSession(true);
           PrintWriter out = response.getWriter();
           out.println( "in HttpServletResponseWrapperEncodeURLTest servlet<BR>" );
           String result = null;
           result = response.encodeURL( expectedResult );
  -
           if ( result.equals( expectedResult ) ) {
               out.println( "HttpServletResponseWrapperEncodeURLTest test PASSED<BR>"
);
           } else {
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message