You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by sa...@locus.apache.org on 2000/10/04 02:23:24 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/BodyContent positiveGetEnclosingWriter.jsp positiveGetReader.jsp positiveGetString.jsp

santosh     00/10/03 17:23:23

  Added:       src/server/jsp-tests/jsp/tagext/BodyContent
                        positiveGetEnclosingWriter.jsp
                        positiveGetReader.jsp positiveGetString.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/BodyContent/positiveGetEnclosingWriter.jsp
  
  Index: positiveGetEnclosingWriter.jsp
  ===================================================================
  <html>
  <title>positiveGetEnclosingWriter</title>
  <body>
  <% 
  	/** 	
  	Name : positiveGetEnclosingWriter
  	Description : Try to get JSPWriter object called by getEnclosingWriter()
  				method.
  	Result : Expected to return JspWriter object. 
  	**/  
  %>	 
  
  
  <!-- Using pageContext.pushBody() to create a BodyContent object -->
  <%	
  	BodyContent bc = pageContext.pushBody();
  %>
  <!-- checking for JspWriter object -->
  <%= (bc.getEnclosingWriter()) instanceof javax.servlet.jsp.JspWriter %>
  
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/BodyContent/positiveGetReader.jsp
  
  Index: positiveGetReader.jsp
  ===================================================================
  <html>
  <title>positiveGetReader</title>
  <body>
  <% 
  	/** 	
  	Name : positiveGetReader
  	Description : Create a BodyContent object and call
  	              the getReader() method. 
  	Result :      Resulting object should be of type
  	             java.io.Reader
  	**/  
  %>	 
  <%	
  	BodyContent bc = pageContext.pushBody();
  	bc.println("Moon");
  %>
  <!-- checking for Reader object -->
  <%= (bc.getReader()) instanceof java.io.Reader %>
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/BodyContent/positiveGetString.jsp
  
  Index: positiveGetString.jsp
  ===================================================================
  <html>
  <title>positiveGetString</title>
  <body>
  <% 
  	/** 	
  	Name : positiveGetString
  	Description : Try to print the contents of BodyContent object 
  				 using getString() method.
  	Result :  Expected to print contents of BodyContent object. 
  	**/  
  %>	 
  
  <%	
  	// using pageContext.pushBody() to create a BodyContent object
  	BodyContent bc = pageContext.pushBody();
  	bc.println("Checking For getString() method");
  	out.println(bc.getString());
  		
  %>
  
  
  
  </body>
  </html>