[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: 1.0a3 Error pages
Greetings,
Error pages are not quite working yet. Pages with the directive
<%@ page isErrorPage="true" %>
need to be translated into a servlet whose service method
contains the declaration and initialization of the JSP page
variable "exception". The reference implementation uses
Throwable exception = (Throwable)
request.getAttribute("javax.servlet.jsp.jspException");
When an exception is thrown from the service method of the
servlet for a JSP page that specifies an error page, the error page
should receive the exception. I do not believe that the 1.0 spec is
particular about how this is done. The Sun reference implementation
seems to clear the output buffer before anything is sent to the browser and
pass control to the error page servlet's service method, embedding the
exception object in the HttpRequest parameter. I hope that helps.
Thank you.
James B. Walters
JamesW@APEXInteractive.com