• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

errorPage directive not working

 
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I have set errorPage for handling errors.But The errorPage is not showing instead I get This:
'The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.'
//badPage.jsp


//errorPage.jsp


When I remove the cause of Arithmetic exception ,the page loads.But when
the cause exists then the problem.
[ April 01, 2008: Message edited by: Bear Bibeault ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where is your errorPage.jsp located under the web application's directory?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"siebica",
Please check your private messages regarding an important administrative matter.
-Ben
 
Bobby Sharma
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Location of errorPage.jsp is fine.The problem arrives when exception raises.
That means when I remove the line <%int x=10/0;%> then there is no problem.Error is handled by erroPage but the page does not show.
Because the Tomcat does not show divide/by zero exception.It shows when
I remove the errorPage directive.

please clarify this.

[ March 31, 2008: Message edited by: omi sharma ]

Edited : The errorPage is showing in firefox but not in IE 6.

why so?
[ March 31, 2008: Message edited by: omi sharma ]
 
Sebastian Tincu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems to be a Internet Explorer specific issue ( this is how it is behaving by default). Try disabling the "Show friendly HTTP error messages" from the Internet Explorer's advance options tab.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok boss
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic