Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

isErrorPage page directive  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!