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:03:07 UTC
cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer errorpage.jsp negativeBuffOverflow.jsp positiveBuffAutoflush.jsp positiveBuffCreate.jsp
santosh 00/10/03 17:03:07
Added: src/server/jsp-tests/jsp/core_syntax/directives/page/buffer
errorpage.jsp negativeBuffOverflow.jsp
positiveBuffAutoflush.jsp positiveBuffCreate.jsp
Log:
watchdog 4.0
Revision Changes Path
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer/errorpage.jsp
Index: errorpage.jsp
===================================================================
<html>
<title>errorpage</title>
<body>
<!-- this is errorpage for negativeBuffOverflow -->
<%@ page isErrorPage="true" %>
<% out.println("This is overflow error page"); %>
<% out.println(exception.getMessage()); %>
</body>
</html>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer/negativeBuffOverflow.jsp
Index: negativeBuffOverflow.jsp
===================================================================
<html>
<title>negativeBuffOverflow</title>
<body>
<% /** Name: negativeBuffOverflow
Description: Use the default buffer size of 8kb. Write out more
than 8kb of characters to the implicit out object.
Result: Should throw java.io.IOException and forward to default
error page.
**/ %>
<!-- we keep autoFlush as false -->
<!--- with default buff size 0f 8kb we output more than that. we give 22k --->
<%@ page autoFlush="false" errorPage="errorpage.jsp" %>
<% for(int d=0;d<6000;d++) out.println(d+" "); %>
</body>
</html>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer/positiveBuffAutoflush.jsp
Index: positiveBuffAutoflush.jsp
===================================================================
<html>
<title>positiveBuffAutoflush</title>
<body>
<% /** Name: positiveBuffAutoflush
Description: Set autoflush to true. Use default buffer size of 8kb.
Write more than 8kb of data to the out object
Result: Should return all data written to out without throwing an
exception.
**/ %>
<!-- with default buff size 0f 8kb and autoflush true write more data 22kb -->
<%@ page autoFlush="true" %>
<% for(int d=0;d<6000;d++) out.print(d+" "); %>
</body>
</html>
1.1 jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer/positiveBuffCreate.jsp
Index: positiveBuffCreate.jsp
===================================================================
<html>
<title>positiveBuffCreate</title>
<body>
<% /** Name: positiveBuffCreate
Description: Create a buffer size of say 12kb. Keep autoflush
set to false(default).Write characters to the out object. Invoke
the flush() method on out to flush the output to the client.
Result:Should return the output that you sent to the client.
**/ %>
<!-- with buff size 0f 12kb and autoflush false and do flush -->
<%@ page buffer="12kb" autoFlush="false" %>
<% for(int d=0;d<1000;d++) out.print(d+" "); out.flush(); %>
</body>
</html>