File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes error page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "error page" Watch "error page" New topic

error page

Abhijeet Gholkar

Joined: Jun 11, 2002
Posts: 25
Hi guys
I am trying to define an error page for exception thrown by the servlet.
I use tomcat3.2 and context in server.xml is
<Context path="/abhi"
trusted="false" >
and the error-page entry in web-application deployment descripter is
after doing this i get following error on the browser, when exception is thrown by the servlet.
Not Found (404)
Original request: /abhi//errorpage.html
Not found request: /abhi//errorpage.html
I tried changing /errorpage.html to errorpage.html but it does not work. I didn't understand what is the problem.
please help
Tony Alicea

Joined: Jan 30, 2000
Posts: 3222
How about calling the same page

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Consider Paul's rocket mass heater.
subject: error page
Similar Threads
My Own SCWCD Mock Exam
Error Page
error-page declaration in web.xml
error-page:is it location dependent in web.xml
Unavailable Exception Problem