Only way to do it is doGet(...) { try { .... // do everything in here .... } catch(Throwable t) { response.sendRedirect("/jsp/ErrorPage.jsp"); } } -----Original Message----- From: Emmanuel Eze [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: How to specify an Error Page in a servlet
Hi all, Can someone please tell me how to specify an Error Page in a servlet similar to JSP's errorPage attribute of the page tag. <%@ page language="java" buffer="8kb" autoFlush="true" isThreadSafe="true" isErrorPage="false" errorPage="ErrorPage.jsp" %>. Thanks ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html