rlubke 02/01/28 15:49:50
Modified: src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage
positiveErrorPage.jsp
Added: src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage
FatalTranslationErrorPage.jsp errorpagedefault.jsp
myerrorpage.jsp
negativeDuplicateErrorPageFatalTranslationError.jsp
negativeFatalTranslationError.jsp
positiveDefaultIsErrorPage.jsp
Log:
- Content push from CTS
Revision Changes Path
1.2 +5 -4
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/positiveErrorPage.jsp
Index: positiveErrorPage.jsp
===================================================================
RCS file:
/home/cvs/jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/positiveErrorPage.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- positiveErrorPage.jsp 4 Oct 2000 00:03:36 -0000 1.1
+++ positiveErrorPage.jsp 28 Jan 2002 23:49:50 -0000 1.2
@@ -2,12 +2,13 @@
<title>positiveErrorPage</title>
<body>
<% /** Name : positiveErrorPage
- Description : Here, the errorPage directive is used.An exception is
- generated by dividing an integer value by 0.
- Result :Expected to show the specified errorpage.
+ Description : Here, the errorPage attribute of the page
+ directive is used. An exception is
+ generated by dividing an integer value by 0.
+ Result : Expected to show the specified errorpage.
**/ %>
<!-- We are setting the error page to "errorpage.jsp" where iserrorpage is true -->
-<%@ page errorPage="myErrorpage.jsp" autoFlush="false" %>
+<%@ page errorPage="myerrorpage.jsp" autoFlush="false" %>
<%! int i=0; %>
<%= 9/i %>
</body>
1.1
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/FatalTranslationErrorPage.jsp
Index: FatalTranslationErrorPage.jsp
===================================================================
<html>
<title>FatalTranslationErrorPage</title>
<body>
<%
// The code below should cause the container
// to throw a fatal translation error.
if ( exception == null ) {
out.println( "Exception was null" );
else {
out.println( "Exception was not null" );
}
%>
</body>
</html>
1.1
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/errorpagedefault.jsp
Index: errorpagedefault.jsp
===================================================================
<html>
<title>errorpage</title>
<body>
<% out.println("This is test error page for isErrorPage=false");
if ( exception == null ) {
out.println( "implicit exception object is null" );
}
%>
</body>
</html>
1.1
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/myerrorpage.jsp
Index: myerrorpage.jsp
===================================================================
<html>
<title>myerrorpage</title>
<body>
<!-- error page for positiveErrorPage.jsp -->
<%@ page isErrorPage="true" %>
<% out.println("This is a test error page"); %>
<% out.println("Exception got is: " + exception.getMessage()); %>
</body>
</html>
1.1
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/negativeDuplicateErrorPageFatalTranslationError.jsp
Index: negativeDuplicateErrorPageFatalTranslationError.jsp
===================================================================
<html>
<title>negativeDuplicateErrorPageFatalTranslationError</title>
<body>
<% /** Name : negativeDuplicateErrorPageFatalTranslationError
Description : Verify that multiple uses of the errorPage attribute
result in a fatal translation error.
Result : A fatal translation error.
**/ %>
<%@ page errorPage="FatalTranslationErrorPage.jsp"
errorPage="FatalTranslationErrorPage.jsp" %>
</body>
</html>
1.1
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/negativeFatalTranslationError.jsp
Index: negativeFatalTranslationError.jsp
===================================================================
<html>
<title>negativeFatalTranslationError</title>
<body>
<% /** Name : negativeFatalTranslationError
Description : Here, the errorPage attribute of the page
directive is used. An exception is
generated by dividing an integer value by 0.
The request is forward onto an error page where
the isErrorPage attribute is set to the default
of false. The Error page will attempt to access
the implicit exception object.
Result : A fatal translation error should occur.
**/ %>
<!-- We are setting the error page to "FatalTranslationErrorPage.jsp" where
isErrorPage is false -->
<%@ page errorPage="FatalTranslationErrorPage.jsp" autoFlush="false" %>
<%! int i=0; %>
<%= 9/i %>
</body>
</html>
1.1
jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/errorpage/positiveDefaultIsErrorPage.jsp
Index: positiveDefaultIsErrorPage.jsp
===================================================================
<html>
<title>positiveDefaultIsErrorPage</title>
<body>
<% /** Name : positiveDefaultIsErrorPage.jsp
Description : Test the value of isErrorPage=false is default in a page.
This is set in the 'errorpagedefault.jsp'
**/ %>
<!-- We are setting the error page to "errorpagedefault.jsp" where isErrorPage is
not set (false) -->
<%@ page errorPage="errorpagedefault.jsp" autoFlush="false" %>
<%! int i=0; %>
<%= 9/i %>
</body>
</html>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>