Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

isErrorPage page directive

 
Kishore Balla
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My error.jsp file doesn't have isErroPage="true" page directive..

But Still incase of exception.. request is getting forwarded to error.jsp..

In HSFJ, its mentioned that..

The exception implicit object is available ONLY to error pages with an explicitly-defined page directive...

But my error.jsp doesn't have isErrorPage page directive.. but still its priniting the exception object.. Is it a bug aka feature in Tomcat.. or is this behaviour the same with all containers...
 
salil verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In error page exception object becomes available only in case when the
<%@ page isErrorPage="true"%> tag is defined. (Tested with websphere server)
If this is available even without using this tag, this may be special feature of tomcat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic