| Author |
JSP Page Directive
|
sri rallapalli
Ranch Hand
Joined: Mar 15, 2005
Posts: 88
|
|
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
Joined: Oct 16, 2005
Posts: 1277
|
|
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 !
|
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
Since you don't declare the error page officially by saying isErrorPage = "true", the container will trouble you when you try compiling it.
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Sureshkumar Chinnappan
Greenhorn
Joined: Feb 15, 2006
Posts: 27
|
|
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.
|
Warm Regards,<br />Suresh Kumar<br /> <br />SCJP 5.0<br />SCWCD 1.4
|
 |
 |
|
|
subject: JSP Page Directive
|
|
|