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/print initializer.jsp negativePrintBoolean.jsp positivePrintBoolean.jsp positivePrintChar.jsp positivePrintCharArray.jsp positivePrintDouble.jsp positivePrintDoubleMaxBound.jsp positivePrintDoubleMinBound.jsp positivePrintFloat.jsp positivePrintFloatMaxBound.jsp positivePrintFloatMinBound.jsp positivePrintInt.jsp positivePrintIntMaxBound.jsp positivePrintIntMinBound.jsp positivePrintLong.jsp positivePrintLongMaxBound.jsp positivePrintLongMinBound.jsp positivePrintObj.jsp positivePrintStr.jsp positivePrintln.jsp positivePrintlnBoolean.jsp positivePrintlnChar.jsp positivePrintlnCharArray.jsp positivePrintlnDouble.jsp positivePrintlnFloat.jsp positivePrintlnInt.jsp positivePrintlnLong.jsp positivePrintlnObj.jsp positivePrintlnStr.jsp
Date Wed, 04 Oct 2000 00:19:16 GMT
santosh     00/10/03 17:19:16

  Added:       src/server/jsp-tests/jsp/engine/JspWriter/print
                        initializer.jsp negativePrintBoolean.jsp
                        positivePrintBoolean.jsp positivePrintChar.jsp
                        positivePrintCharArray.jsp positivePrintDouble.jsp
                        positivePrintDoubleMaxBound.jsp
                        positivePrintDoubleMinBound.jsp
                        positivePrintFloat.jsp
                        positivePrintFloatMaxBound.jsp
                        positivePrintFloatMinBound.jsp positivePrintInt.jsp
                        positivePrintIntMaxBound.jsp
                        positivePrintIntMinBound.jsp positivePrintLong.jsp
                        positivePrintLongMaxBound.jsp
                        positivePrintLongMinBound.jsp positivePrintObj.jsp
                        positivePrintStr.jsp positivePrintln.jsp
                        positivePrintlnBoolean.jsp positivePrintlnChar.jsp
                        positivePrintlnCharArray.jsp
                        positivePrintlnDouble.jsp positivePrintlnFloat.jsp
                        positivePrintlnInt.jsp positivePrintlnLong.jsp
                        positivePrintlnObj.jsp positivePrintlnStr.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/initializer.jsp
  
  Index: initializer.jsp
  ===================================================================
  <html>
  <title>initializer</title>
  <body>
  <!-- javatest uses this jsp to get the directory where test jsps are kept -->
  <%! String where=null; %>
  <% String path=request.getPathTranslated(); %>
  <% if(path!=null) {
                       int last=path.lastIndexOf("initializer.jsp");   
                       where= path.substring(0,last);
       
                     } else {
                         path=System.getProperty("user.home");
                         where=path;
                       }
                       
       out.println("path="+where);   %>  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/negativePrintBoolean.jsp
  
  Index: negativePrintBoolean.jsp
  ===================================================================
  <html>
  <title>negativePrintBoolean</title>
  <body>
  <%
  /*
   Name : negativePrintBoolean
  */
  %>
  <!-- This is to test if print(boolean) throws IOException if stream is closed -->
  <%@ page import="java.io.*;" %>
  <% out.println("hello"); %>
  <% out.close(); %>
  
  <!-- To report this situation, 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("negativePrintBoolean"); 
              dir=path.substring(0,where); 
              }else {
              dir=System.getProperty("user.home");
              }
              java.io.File file=new java.io.File(dir+System.getProperty("file.separator")+"negativePrintBoolean.err");

              java.io.FileWriter fw=new java.io.FileWriter(file);%>
  <% boolean b=true; %>
  <!-- Now lets try to flush the stream -->
  <% try { out.println(b); fw.write("no IOException"); fw.flush();fw.close();
  }catch(java.io.IOException ioe) { %>
  <% fw.write("we got IOException"); fw.flush();fw.close(); }%>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintBoolean.jsp
  
  Index: positivePrintBoolean.jsp
  ===================================================================
  <html>
  <title>positivePrintBoolean</title>
  <body>
  <%
  /*
   Name : positivePrintBoolean
  */
  %>
  <!-- this is to test if print(boolean b) method works -->
  <%! boolean test=true; %>
  <% out.print(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintChar.jsp
  
  Index: positivePrintChar.jsp
  ===================================================================
  <html>
  <title>positivePrintChar</title>
  <body>
  <%
  /*
   Name : positivePrintChar
  */
  %>
  <!-- this is to test if print(char c) method works -->
  <%! char c='A'; %>
  <% out.print(c); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintCharArray.jsp
  
  Index: positivePrintCharArray.jsp
  ===================================================================
  <html>
  <title>positivePrintCharArray</title>
  <body>
  <%
  /*
   Name : positivePrintCharArray
  */
  %>
  <!-- this is to test if print(char[] c) method works -->
  <%! char[] c={'A','B','C'}; %>
  <% out.print(c); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintDouble.jsp
  
  Index: positivePrintDouble.jsp
  ===================================================================
  <html>
  <title>positivePrintDouble</title>
  <body>
  <%
  /*
   Name : positivePrintDouble
  */
  %>
  <!-- this is to test if print(double d) method works -->
  <%! double d=234567; %>
  <% out.print(d); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintDoubleMaxBound.jsp
  
  Index: positivePrintDoubleMaxBound.jsp
  ===================================================================
  <html>
  <title>positivePrintDoubleMaxBound</title>
  <body>
  <%
  /*
   Name : positivePrintDoubleMaxBound
  */
  %>
  <!-- Get the max. boundary for double for checking -->
  <%
  double d=Double.MAX_VALUE;
  out.print(d);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintDoubleMinBound.jsp
  
  Index: positivePrintDoubleMinBound.jsp
  ===================================================================
  <html>
  <title>positivePrintDoubleMinBound</title>
  <body>
  <%
  /*
   Name : positivePrintDoubleMinBound
  */
  %>
  <!-- Get the min. boundary for double for checking -->
  <%
  double d=Double.MIN_VALUE;
  out.print(d);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintFloat.jsp
  
  Index: positivePrintFloat.jsp
  ===================================================================
  <html>
  <title>positivePrintFloat</title>
  <body>
  <%
  /*
   Name : positivePrintFloat
  */
  %>
  <!-- this is to test if print(float f) method works -->
  <%! float f=45; %>
  <% out.print(f); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintFloatMaxBound.jsp
  
  Index: positivePrintFloatMaxBound.jsp
  ===================================================================
  <html>
  <title>positivePrintFloatMaxBound</title>
  <body>
  <%
  /*
   Name : positivePrintFloatMaxBound
  */
  %>
  <!-- Get the max. boundary for float for checking -->
  <%
  float d=Float.MAX_VALUE;
  out.print(d);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintFloatMinBound.jsp
  
  Index: positivePrintFloatMinBound.jsp
  ===================================================================
  <html>
  <title>positivePrintFloatMinBound</title>
  <body>
  <%
  /*
   Name : positivePrintFloatMinBound
  */
  %>
  <!-- Get the min. boundary for float for checking -->
  <%
  float d=Float.MIN_VALUE;
  out.print(d);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintInt.jsp
  
  Index: positivePrintInt.jsp
  ===================================================================
  <html>
  <title>positivePrintInt</title>
  <body>
  <%
  /*
   Name : positivePrintInt
  */
  %>
  <!-- this is to test if print(Int i) method works -->
  <%! int i=234; %>
  <% out.print(i); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintIntMaxBound.jsp
  
  Index: positivePrintIntMaxBound.jsp
  ===================================================================
  <html>
  <title>positivePrintIntMaxBound</title>
  <body>
  <%
  /*
   Name : positivePrintIntMaxBound
  */
  %>
  <!-- Get the max. boundary for int for checking -->
  <%
  int i=Integer.MAX_VALUE;
  out.print(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintIntMinBound.jsp
  
  Index: positivePrintIntMinBound.jsp
  ===================================================================
  <html>
  <title>positivePrintIntMinBound</title>
  <body>
  <%
  /*
   Name : positivePrintIntMinBound
  */
  %>
  <!-- Get the min. boundary for int for checking -->
  <%
  int i=Integer.MIN_VALUE;
  out.print(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintLong.jsp
  
  Index: positivePrintLong.jsp
  ===================================================================
  <html>
  <title>positivePrintLong</title>
  <body>
  <%
  /*
   Name : positivePrintLong
  */
  %>
  <!-- this is to test if print(long l) method works -->
  <%! long l=123456789; %>
  <% out.print(l); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintLongMaxBound.jsp
  
  Index: positivePrintLongMaxBound.jsp
  ===================================================================
  <html>
  <title>positivePrintLongMaxBound</title>
  <body>
  <%
  /*
   Name : positivePrintLongMaxBound
  */
  %>
  <!-- Get the max. boundary for long for checking -->
  <%
  long d=Long.MAX_VALUE;
  out.print(d);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintLongMinBound.jsp
  
  Index: positivePrintLongMinBound.jsp
  ===================================================================
  <html>
  <title>positivePrintLongMinBound</title>
  <body>
  <%
  /*
   Name : positivePrintLongMinBound
  */
  %>
  <!-- Get the min. boundary for long for checking -->
  <%
  long d=Long.MIN_VALUE;
  out.print(d);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintObj.jsp
  
  Index: positivePrintObj.jsp
  ===================================================================
  <html>
  <title>positivePrintObj</title>
  <body>
  <%
  /*
   Name : positivePrintObj
  */
  %>
  <!-- this is to test if print(java.lang.Object obj) method works -->
  <%! Integer i=new Integer(123); %>
  <% out.print(i); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintStr.jsp
  
  Index: positivePrintStr.jsp
  ===================================================================
  <html>
  <title>positivePrintStr</title>
  <body>
  <%
  /*
   Name : positivePrintStr
  */
  %>
  <!-- this is to test if print(java.lang.String str) method works -->
  <%! String str="india"; %>
  <% out.print(str);%>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintln.jsp
  
  Index: positivePrintln.jsp
  ===================================================================
  <html>
  <title>positivePrintln</title>
  <body>
  <%
  /*
   Name : positivePrintln
  */
  %>
  <!-- this is to test if println method works -->
  <%! char[] c={'A','B','C'}; %>
  <!-- trying to print each character in an array, in a new line -->
  <% 
  for( int i=0; i<3;i++ ) {   
      out.println(c[i]); 
  }   
          
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnBoolean.jsp
  
  Index: positivePrintlnBoolean.jsp
  ===================================================================
  <html>
  <title>positivePrintlnBoolean</title>
  <body>
  <%
  /*
   Name : positivePrintlnBoolean
  */
  %>
  <!-- this is to test if println(boolean b) method works -->
  <%! boolean test=true; %>
  <% out.println(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnChar.jsp
  
  Index: positivePrintlnChar.jsp
  ===================================================================
  <html>
  <title>positivePrintlnChar</title>
  <body>
  <%
  /*
   Name : positivePrintlnChar
  */
  %>
  <!-- this is to test if println(char c) method works -->
  <%! char test='m'; %>
  <% out.println(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnCharArray.jsp
  
  Index: positivePrintlnCharArray.jsp
  ===================================================================
  <html>
  <title>positivePrintlnCharArray</title>
  <body>
  <%
  /*
   Name : positivePrintlnCharArray
  */
  %>
  <!-- this is to test if println(char c[]) method works -->
  <%! char test[]={'m','a','d','r','a','s'}; %>
  <%
  for( int i =0;i<6;i++ ) {
      out.println(test[i]); 
  }   
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnDouble.jsp
  
  Index: positivePrintlnDouble.jsp
  ===================================================================
  <html>
  <title>positivePrintlnDouble</title>
  <body>
  <%
  /*
   Name : positivePrintlnDouble
  */
  %>
  <!-- this is to test if println(double d) method works -->
  <%! double test= 1234.56789; %>
  <%  out.println(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnFloat.jsp
  
  Index: positivePrintlnFloat.jsp
  ===================================================================
  <html>
  <title>positivePrintlnFloat</title>
  <body>
  <%
  /*
   Name : positivePrintlnFloat
  */
  %>
  <!-- this is to test if println(float f) method works -->
  <%! float test= 1234; %>
  <%  out.println(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnInt.jsp
  
  Index: positivePrintlnInt.jsp
  ===================================================================
  <html>
  <title>positivePrintlnInt</title>
  <body>
  <%
  /*
   Name : positivePrintlnInt
  */
  %>
  <!-- this is to test if println(int i) method works -->
  <%! int test= 12; %>
  <%  out.println(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnLong.jsp
  
  Index: positivePrintlnLong.jsp
  ===================================================================
  <html>
  <title>positivePrintlnLong</title>
  <body>
  <%
  /*
   Name : positivePrintlnLong
  */
  %>
  <!-- this is to test if println(long l) method works -->
  <%! long l=123456789; %>
  <% out.println(l); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnObj.jsp
  
  Index: positivePrintlnObj.jsp
  ===================================================================
  <html>
  <title>positivePrintlnObj</title>
  <body>
  <%
  /*
   Name : positivePrintlnObj
  */
  %>
  <!-- this is to test if println(java.lang.Object obj) method works -->
  <%! Integer i=new Integer(123); %>
  <% out.println(i); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/print/positivePrintlnStr.jsp
  
  Index: positivePrintlnStr.jsp
  ===================================================================
  <html>
  <title>positivePrintlnStr</title>
  <body>
  <%
  /*
   Name : positivePrintlnStr
  */
  %>
  <!-- this is to test if println(java.lang.String str) method works -->
  <%! String str="india"; %>
  <% out.println(str);%>
  </body>
  </html>
  
  

Mime
View raw message