Java Reference
In-Depth Information
String _value = null;
try {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType(“text/html”);
pageContext = _jspxFactory.getPageContext(this, request, response,
“”, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// begin
out.write(“<html>\r\n\r\n<body text=\”red\”>\r\n\r\n”);
// end
// begin
out.write(“\r\n\r\n<!-- Use the implicit exception object, “ +
out.write(“which holds a reference -->\r\n<!-- to the thrown “ +
out.write(“exception. -->\r\n\r\nError: “);
// end
// begin [file=”D:\\errorpage.jsp”;from=(9,10);to=(9,34)]
out.print( exception.getMessage() );
// end
// begin
out.write(“ has been reported. \r\n\r\n</body>\r\n</html>\r\n”);
// end
}
catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clear();
pageContext.handlePageException(ex);
}
finally {
out.flush();
_jspxFactory.releasePageContext(pageContext);
}
}
Search WWH ::




Custom Search