Bookmark Topic Watch Topic
  • New Topic

error-page!!!

 
kriti sharma
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Report post to moderator
i have put the following lines in web.xml

<error-page>
<error-code>500</error-code>
<location>/logo.html</location>
</error-page>

and called response.sendError(500);

but the page is not found by the server.what is the mistake?

if i make my own exception classes extending ServletException, for my web app will this work?

<error-page>
<exception-type>MyException</exception-type>
<location>/logo.html</location>
</error-page>
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!