Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception explicit object

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was reading page 461 of HeadFirstSJ, where it is written in handwriting,


Note: the exception implicit object is available ONLY to error pages
with an explicitly-defined page directive.
<%@page isErrorPage="true"%>

In other words, configuring an error page in the DD is not enough to make
the Container give that page the implicit exception object!



My confusion: I am using apache-tomcat-5.5.23.
I configured error page in the Deployment Descriptor. But I didn't
explicitly define the <%@page isErrorPage="true"%> in my errorPage.jsp
and it is still working. Is it something container specific?

What is the reason?


Thanks,
[ June 02, 2007: Message edited by: Chandra Bhatt ]
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
need to go through the tomcat docs..
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the complete code..
 
Pravin Jain
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not container specific, it is correct that exception will
be available to all errorPages which are explicitly specified with
@ page directive or in the deployment descriptor.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic