jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sant...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/misc positiveClose.jsp
Date Fri, 13 Oct 2000 00:10:20 GMT
santosh     00/10/12 17:10:20

  Modified:    src/server/jsp-tests/jsp/engine/JspWriter/misc
                        positiveClose.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.2       +1 -20     jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/misc/positiveClose.jsp
  
  Index: positiveClose.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/misc/positiveClose.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- positiveClose.jsp	2000/10/04 00:17:57	1.1
  +++ positiveClose.jsp	2000/10/13 00:10:20	1.2
  @@ -10,27 +10,8 @@
    %>
   <!-- This is to test if close method works -->
   <!-- We should get 'out' object to be null after closing output -->
  -<%@ page import="java.io.*;" %>
   <% out.println("hello"); %>
   <% out.close(); %>
  -<!-- To report that 'out' is null, we dont have a stream to client available -->
  -<!-- We create a file in the directory where jsp is kept which is seen by javatest -->
  -<%! String dir; %>
  -<% String path=request.getPathTranslated(); %>
  -<% if(path!=null) {
  -                 int where=path.lastIndexOf("positiveClose.jsp"); 
  -                 dir=path.substring(0,where);
  -                 }else {
  -             dir=System.getProperty("user.home");
  -             }  
  -                 java.io.File file=new java.io.File(dir+System.getProperty("file.separator")+"positiveClose.err");

  -                 java.io.FileWriter fw=new java.io.FileWriter(file);
  -
  -
  -   
  -
  -if(out==null){fw.write("out is null");fw.flush();fw.close(); }
  -else{fw.write("out is not null");fw.flush();fw.close();} %>
  -
  +<% out.println("hello"); %>
   </body>
   </html>
  
  
  

Mime
View raw message