• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error page

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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"
docBase="/home/abhijeet/jsp_prac"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
and the error-page entry in web-application deployment descripter is
<error-page>
<exception-type>
java.util.NoSuchElementException
</exception-type>
<location>/errorpage.html</location>
</error-page>
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
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about calling the same page
errorpage.jsp
 
reply
    Bookmark Topic Watch Topic
  • New Topic