errorPage
Defines a URL to a resource to which any Java programming language
Throwable
object(s) thrown but not caught by the page
implementation are forwarded to for error processing.
The provided URL spec is as in Section 2.5.2.
The resource named has to be a JSP page in this version of the
specification.
If the URL names another JSP page then, when invoked that JSP
page's
exception
implicit script variable shall contain a reference
to the originating uncaught
Throwable
.
The default URL is implementation dependent.
Note the
Throwable
object is transferred by the throwing page
implementation to the error page implementation by saving the object
reference on the common
ServletRequest
object using the
setAttribute()
method, with a name of
javax.servlet.jsp.jspException
.
Note: if
autoFlush=true
then if the contents of the initial
JspWriter
has been flushed to the
ServletResponse
output
stream then any subsequent attempt to dispatch an uncaught exception
from the offending page to an
errorPage
may fail.
contentType
Defines the character encoding for the JSP page and for the response
of the JSP page and the MIME type for the response of the JSP page.
Values are either of the form TYPE or TYPE; charset=CHARSET
with an optional white space after the ; . CHARSET, if present, must
be the IANA value for a character encoding. TYPE is a MIME type,
see the IANA registry for useful values.
The default value for TYPE is text/html ; the default value for the
character encoding is ISO 8859 1.
See Section 2.7.4 for complete details on character encodings.
2.7.2
Synchronization Issues
JSP Pages inherit the Servlet semantics as described in the Servlet 2.2 specification. In this
section we briefly summarize the threading and distribution issues from that specification, as
they apply to JSP pages.
47
JavaServer Pages 1.1 Specification
November 30, 1999
JSP Web Hosting JavaServer Pages Specifications JSP Hosting
|
|
|
|
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved. |