• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Page Directive

 
sri rallapalli
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have one doubt regarding JSP page directive attributes.
Suppose i have 2 JSP pages a.jsp and b.jsp, in the a.jsp i want to set the isErrorPage=false, in b.jsp i want to set the errorPage="a.jsp", in this case, if some exeption occures in the b.jsp, then what will happen? Generally inorder to work the errorPage work fine, the a.jsp's isErrorPage=true.
Please explain me abt this.

thanks & Regards,
Sri.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your a.jsp
the isErrorPage="false"
but in b.jsp your are giving errorPage="a.jsp"

since a is not a offical error page, though youe point to it in b.jsp
the container wont use a.jsp and will throw a stact trace in the borwser !
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you don't declare the error page officially by saying isErrorPage = "true", the container will trouble you when you try compiling it.
 
Sureshkumar Chinnappan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If any exception is raised on b.jsp then it will show the a.jsp only.
But in a.jsp if you specify isErrorPage="fasle" then you can't access the JSP implicit exception object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic