posted 16 years ago
Hi,
My doubt runs around:
Can't a page tell a container more that one errorPage using?
I tried that like:
<%@page errorPage ="ErrorPage1"%>
<%@page errorPage ="ErrorPage2"%>
But I got compiler error saying I can't have more that one page directive
for errorPage attribute with different values.
I wanted like, forward to the page corresponding to error type, decided later on.
One related doubt: I tried to achieve the same by declaring <error-page>
in the Deployment Descriptor, but until I do tell the container using
<%@page errorPage ="errorPage.jsp"%>, it doesn't work. Is that correct?
Can't container find out that from the DD, which error page to forward
in case exception occurs.
Thanks in advance for clarifying my doubts.
Thanks,