This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Routing servlet exceptions to a particular jsp page? 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 » Servlets
Bookmark "Routing servlet exceptions to a particular jsp page?" Watch "Routing servlet exceptions to a particular jsp page?" New topic
Author

Routing servlet exceptions to a particular jsp page?

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Hi,

In my MVC based application, i want to route my exceptions raised in my model classes to a particular jsp page.

I want to generalize these exceptions ie i want to make a general class to which i can route my exception generated & from that class i want to display that jsp error page displaying the problem??

So how to do that??


Thanks,
Jignesh
[ March 27, 2006: Message edited by: Bear Bibeault ]

Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Download a copy of the servlet spec, if you haven't already (link in my signagure) and have a look at section SRV.9.9.2.
You can get there quickly by searching for "error-page".

It answers your question pretty well.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Consider Paul's rocket mass heater.
 
subject: Routing servlet exceptions to a particular jsp page?
 
Similar Threads
Tiles 2.x.x Question
javascript call from instantiated class which extends JApplet
use of <bean:write> and <bean:message> ???
Error Handling and the Response Object
Log4j in JSP