• Post Reply Bookmark Topic Watch Topic
  • New Topic

handling error or exception pages  RSS feed

 
yarlagadda rajesh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
how to handling error or exception pages by navigating to another page which specifies the exception name and type
 
Vijitha Kumara
Bartender
Posts: 3993
31
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not that clear, can you elaborate your question a bit?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet Specification has a complete section on error handling.
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!