Error page
  1. Error page (4 messages)

    Hi

    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

    AND

    <%@ page language="java" isErrorPage="true" %> in Error.jsp



    Please help!

    Medha

    Threaded Messages (4)

  2. Error page[ Go to top ]

    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...

    cheers
    Syed
  3. Error page[ Go to top ]

    hi,

    How about this following approch:


    Once if there's any exception just forward your page using the RequestDispatcher Object like this

    <%

    try{

    ....

    }
    catch(Exception e){
    %>

    <jsp:forward page="url of the error page" />
    <%
    }
    %>

    regards
    Moorthi






  4. Error page[ Go to top ]

    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'.

    Regards,

    Gordon.
  5. Error page[ Go to top ]

    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 !

    Sachin
    If God is not real, it must be integer