• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with error-page mappings

 
Rohit Bhagwat
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends

Can any one please help me

I want to use error code mapping in web.xml of my web app.

I used the following code

<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/test.html</location>
</error-page>

I am having the test.html file in my web app and works fine if accessed directly.
But when I throw NullPointerException in my servlet then I am unable to see test.html. I dont why ?

I am using Tomcat 5.0

Waiting for your suggestions and replies.

Thanks and Regards
Rohit.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!