This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes problem in exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem in exception handling" Watch "problem in exception handling" New topic

problem in exception handling

jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
i have witten the foolowin line in web.xml for handling exception
i have also tried
but when i write startup on dos prompt like
exception come on the screen.(on prompt screen of web-server)
I don't know why this so.
i have putted htm file in the following folder.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
If you get that exception on startup then it occurs before Tomcat is able to serve web pages.
What are you expecting this <error-page> tag to do?
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

Originally posted by jawwad ahmed:
i have witten the foolowin line in web.xml for handling exception

Could the error you're getting be caused by the fact that your web.xml is invalid due to the spelling of <exception-type> ?

- Jessica Bradley
HP Bluestone

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Biju Nair
Ranch Hand

Joined: Dec 15, 2001
Posts: 31
You can also write a separate error page and redirect all JSPs to this page when ever an error occurs. For this add
<%@page errorPage="<your error page>"%>
in your JSPs. This will make the JSP redirect to error page when ever an exception occurs.


--: Biju Nair :--
I agree. Here's the link:
subject: problem in exception handling
It's not a secret anymore!