Details on JSP error page include...

I have a scenario as defined below:-

There are two JSPs, A_page.jsp and B_page.jsp.

They have AERROR.jsp and BERROR.jsp defined as error pages for them respectively.

Case1:- If A_page.jsp includes B_page.jsp using include directive.

In case there is an error, which error page will be shown, AERROR.jsp or BERROR.jsp?

Case2:- If A_page.jsp includes B_page.jsp using JSP action.

In case there is an error, which error page will be shown, AERROR.jsp or BERROR.jsp?

Please clarify...

Thanks in advance... ;-)

[560 byte] By [bronze-starDukes] at [2007-11-26 12:15:06]
# 1

call.jsp

********

<%@page errorPage="first.jsp" %>

<%=1/0%>

first.jsp

********

<%@page isErrorPage="true" %>

<%="errorfirst"%>

<%@include file="second.jsp" %>

second.jsp

************

<%@page isErrorPage="true" %>

<%="errorSecond"%>

output

********

errorfirst errorSecond

(so it will display all first and second error jsp`s)...

its like a sub call (or) inline call in c++...

and vice versa

bronzestar at 2007-7-7 14:18:32 > top of Java-index,Archived Forums,Socket Programming...
# 2
I am not talking about the error page including another error page...I have a completely different scenario... I think you have not understood the scenario... please read it again and kindly reply if you can !!!
bronzestar at 2007-7-7 14:18:32 > top of Java-index,Archived Forums,Socket Programming...