Hi,
What you can do is redirect to a error handling servlet which will print out
the error page.
1: Put the error in a exception java bean.
2: Put the bean into httpsession.
3: redirect to the exception handling servlet
4: in the exception handling servlet, read the exception java bean from the
httpsession. Now you can get the error from the java bean and display the
error page.

HTH,
        Anil
--------------------------------------------
Anil Colin Lobo
Aztec Software, Inc.
3211 Scott Blvd., Suite 204
Santa Clara, California 95054
Ph: (408) 7483500

Currently at:
Apexon Inc.
Suite 307
2025, Gateway Place,
San Jose
CA
Ph (408) 5739961

-----Original Message-----
Subject: Error page in servlet.

Hello,

   In JSP, if any error occurs, instead of showing that page, we can dispaly
the customized user error page like
errorPage="Error.jsp"

   How to implement the same in servlet without using trycatch for unknown
errors and exceptions.

Kavitha

___________________________________________________________________________
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

Reply via email to