Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Routing servlet exceptions to a particular jsp page?

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic