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/write negativeWriteInt.jsp negativeWriteStrOffset.jsp positiveWriteCharArray1.jsp positiveWriteCharArray2.jsp positiveWriteInt.jsp positiveWriteIntExt.jsp positiveWriteIntLowBit.jsp positiveWriteIntMaxValue.jsp positiveWriteStr.jsp positiveWriteStrOffset.jsp
Date Wed, 04 Oct 2000 00:19:53 GMT
santosh     00/10/03 17:19:53

  Added:       src/server/jsp-tests/jsp/engine/JspWriter/write
                        negativeWriteInt.jsp negativeWriteStrOffset.jsp
                        positiveWriteCharArray1.jsp
                        positiveWriteCharArray2.jsp positiveWriteInt.jsp
                        positiveWriteIntExt.jsp positiveWriteIntLowBit.jsp
                        positiveWriteIntMaxValue.jsp positiveWriteStr.jsp
                        positiveWriteStrOffset.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/negativeWriteInt.jsp
  
  Index: negativeWriteInt.jsp
  ===================================================================
  <html>
  <title>negativeWriteInt</title>
  <body>
  <%
  /*
   Name : negativeWriteInt
   Description : Call the method write(int i) , after closing the 'out' stream.
   IOException is expected.
  */
  %>
  <!-- calling the method write(int i) -->
  <%
  out.close();
  int i= 123;
  out.write(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/negativeWriteStrOffset.jsp
  
  Index: negativeWriteStrOffset.jsp
  ===================================================================
  <html>
  <title>negativeWriteStrOffset</title>
  <body>
  <%
  /*
   Nmae : negativeWriteStrOffset
   Description : Call the method write(java.lang.String str,int off, int len),
   make sure that the the argument int len exceeds the length of the string.
   ArrayIndexOutOfBoundsException is expected.
  */
  %>
  <!-- calling the method write(String s, int off,int len) -->
  <!-- trying to print a string exceeding the length of the string --> 
  
  <%
      String  s= "webpage";
      out.write(s, 3,6);
  %>
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteCharArray1.jsp
  
  Index: positiveWriteCharArray1.jsp
  ===================================================================
  <html>
  <title>positiveWriteCharArray1</title>
  <body>
  <%
  /*
   Name : positiveWriteCharArray1
  */
  %>
  <!-- this is to test if write(char c[]) method works -->
  <%! char test[]={'m','a','d','r','a','s'}; %>
  <% out.write(test); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteCharArray2.jsp
  
  Index: positiveWriteCharArray2.jsp
  ===================================================================
  <html>
  <title>positiveWriteCharArray2</title>
  <body>
  <%
  /*
   Name : positiveWriteCharArray2
  */
  %>
  <!-- this is to test if write(char[] c,int off,int len) method works -->
  <%! char test[]={'m','a','d','r','a','s'}; %>
  <% out.write(test,3,3); %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteInt.jsp
  
  Index: positiveWriteInt.jsp
  ===================================================================
  <html>
  <title>positiveWriteInt</title>
  <body>
  <%
  /*
   Name : positiveWriteInt
   Dexcription : Declare an int, and then call the method
  write(int i) in the jsp page.Make sure that the int lies inbetween 0 and 127
  */
  %>
  <%
  int i=65;
  out.write(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteIntExt.jsp
  
  Index: positiveWriteIntExt.jsp
  ===================================================================
  <html>
  <title>positiveWriteIntExt</title>
  <body>
  <%
  /*
   Name : positiveWriteIntExt
  */
  %>
  <!-- calling the method write(int i), where i lies in between 128 and 255 -->
  <%
  int i=165;
  out.write(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteIntLowBit.jsp
  
  Index: positiveWriteIntLowBit.jsp
  ===================================================================
  <html>
  <title>positiveWriteIntLowBit</title>
  <body>
  <%
  /*
   Name : positiveWriteIntLowBit
   Description : Call the method write(int i) in a JSP  page and pass the integer,
   where the upper two bytes are non-zero & lower two bytes constitute a valid ASCII
   character,as an argument.Character corresponding to the value of lower two bytes
   is expected.
  */
  %>
  <!-- calling the method write(int i) -->
  <%
      int i=676397122;
      out.write(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteIntMaxValue.jsp
  
  Index: positiveWriteIntMaxValue.jsp
  ===================================================================
  <html>
  <title>positiveWriteIntMaxValue</title>
  <body>
  <%
  /*
   Name : positiveWriteIntMaxValue
   Description : Call the method in the jsp page write(int i) in a JSP page
   and pass the max value of the integer as an argument.A non-printable ASCII
   character is expected.
  */
  %>
  <!-- calling the method write(int i) -->
  <%
  int i= Integer.MAX_VALUE;
  out.write(i);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteStr.jsp
  
  Index: positiveWriteStr.jsp
  ===================================================================
  <html>
  <title>positiveWriteStr</title>
  <body>
  <%
  /*
   Name : positiveWriteStr
   Description : Declare a String and then call the write(java.lang.String str) method. 
  */
  %>
  <%
  String s="ABC";
  out.write(s);
  %>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/engine/JspWriter/write/positiveWriteStrOffset.jsp
  
  Index: positiveWriteStrOffset.jsp
  ===================================================================
  <html>
  <title>positiveWriteStrOffset</title>
  <body>
  <%
  /*
   Name : positiveWriteStrOffset
   Description : Declare a String variable and call the  method 
   write(java.lang.String str,int off,int len).
  */
  %>
  <%
  String s="character";
  out.write(s,3,5);
  %>
  </body>
  </html>
  
  

Mime
View raw message