I am using Tomcat 3.2 and Inprise AppServer 4.5
I have 2 jsp's count.jsp and Error.jsp.
Error.jsp is an error page which count.jsp is calling on error/exception.
My problem is
I deployed my application as a war with 2 web component(for 2 jsp's).
But when count.jsp throw's any error/exception it's not calling
Error.jsp instead calling tomcat's default error page.
what can possibly be wrong?
i have includes required directives as well
<%@ page language="java" errorPage="Error.jsp" %> in Count.jsp
<%@ page language="java" isErrorPage="true" %> in Error.jsp
If you are importing something like ....this ..then try like
<%@ page import="java.util.*" errorPage="Error.jsp"%>
in the jsp page ..
and in actual Error page try ..
<%@ page import="java.util.*" isErrorPage="true" %>
If you have any further inquiry please let me know...
How about this following approch:
Once if there's any exception just forward your page using the RequestDispatcher Object like this
<jsp:forward page="url of the error page" />
Medha, are your JSP's and your Error page all in the root directory? If not, you might try using an absolute URL in JSP's that refer to the error page, like:
<%@ page language="java" errorPage="/application/Error.jsp" %>
Also, be case-sensitive; if Error.jsp is really named error.jsp, try using the leading lowercase 'e'.
I am not sure but i remember i had specified error pages in the deployment descriptor (XML) for the war file for corresponding error codes.
I was on weblogic !
If God is not real, it must be integer