File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes handling error or exception pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "handling error or exception pages" Watch "handling error or exception pages" New topic
Author

handling error or exception pages

yarlagadda rajesh
Greenhorn

Joined: Feb 23, 2009
Posts: 7
hi
how to handling error or exception pages by navigating to another page which specifies the exception name and type


regards,
yarlagadda rajesh
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

It's not that clear, can you elaborate your question a bit?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

The Servlet Specification has a complete section on error handling.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
There are in all many ways to handle exceptions on jsp's

1) Using Scriptlets (very simple but too slow on 1st request)


2) Mention errorPage in page directive



Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Scriptlets? There are far better options like JSTL,EL. Scriplets must be avoided.

Take a look at this superb article on Exception Handling in Web Applications
 
Don't get me started about those stupid light bulbs.
 
subject: handling error or exception pages
 
Similar Threads
Error Handling in Jsp
Exception Handling...For Marty Hall..and All
Doubt with error page config in DD
exception handling in jsps
could we have this?