You have to use JSP0.92 syntax.

In the pages, use

<% errorpage="errorpage.jsp" %>

You don't have to do anything in the errorpage itself.

Sree


>From: BIJUNAIRS <[EMAIL PROTECTED]>
>To: "'Sreekumar Pillai'" <[EMAIL PROTECTED]>
>Subject: RE: Errorpage directive and IPlanet 4.0 SP3
>Date: Sat, 12 Feb 2000 14:31:30 +0530
>
>Hi,
>   Where <%@ page isErrorPage="true" %> has to be used? In the error page
>or
>in the original jsp page.
>But if some error occurs it is displayed in the same page as usual. How to
>display errors? If you got any answer send it to me
>---------------------------------------
>Biju Nair
>ITLInfosys
>Ph:8520261 Ext.6666
>
>               -----Original Message-----
>               From:   Sreekumar Pillai [mailto:[EMAIL PROTECTED]]
>               Sent:   Thursday, February 10, 2000 8:54 PM
>               To:     [EMAIL PROTECTED]
>               Subject:        Re: Errorpage directive and IPlanet 4.0 SP3
>
>               Well.. You could use JRun with IPlanet for JSP1.0. But you
>might have to
>               configure servlets also through JRun if you want to use both
>Servlets and
>               JSP in the same application (Sharing the session is a
>problem). I was
>               thinking about doing it, but couldn't find any documentation
>for connecting
>               JRun with IPlanet. Wisely, decided to go with JSP 0.92.
>
>
>               1. The errorpage directive seem to work when I give relative
>path. But now I
>               am faced with the problem of displaying the error.
>
>
>               Errorpage.jsp
>               -------------
>
>               <body>
>
>                       An exception has occured.
>                       The details: <%=exception.getMessage() %>
>
>               </body>
>               </html>
>
>               This itself throws a nullpointer exception!
>
>
>               If I remove exception.getMessage(), this works fine.
>
>               <body>
>
>                       An exception has occured.
>                       The details:
>
>               </body>
>               </html>
>
>
>
>               Sree
>
>
>
>               >From: Naeem Ahmed <[EMAIL PROTECTED]>
>               >To: Sreekumar Pillai <[EMAIL PROTECTED]>
>               >CC: [EMAIL PROTECTED]
>               >Subject: Re: Errorpage directive and IPlanet 4.0 SP3
>               >Date: Thu, 10 Feb 2000 14:54:28 -0500 (EST)
>               >
>               >I don't have an answer for your question, but I've also
>been facing
>               >similar problems with IPlanet related to error and
>exception handling.
>               >
>               >Question: Does anyone know how to upgrade IPlanet JSP 0.92
>to JSP 1.1 ?
>               >
>               >I've been using the JSWDK for development, and my .jsp's
>seem to work
>               >there.
>               >
>               >
>               >On Thu, 10 Feb 2000, Sreekumar Pillai wrote:
>               >
>               > > How do you specify the errorpage directive in
>IPlanet(SP2)? (JSP 0.92).
>               >The
>               > > following code snippet doesn't work.
>               > >
>               > > I checked the generated servlet from this JSP before and
>after adding
>               >the
>               > > errorpage directive. I can't see any difference in the
>generated code.
>               >Is it
>               > > a bug with IPlanet? Or Am I doing something silly?
>               > >
>               > >
>               > > <%@ errorpage="testerrorPage.jsp"%>
>               > >
>               > > <%
>               > >    // the following line should throw a nullpointer
>exception.
>               > >    if ( request.getParameter("dummyvalue").equals(
>"dummy" ) )
>               > >    {
>               > >    }
>               > > %>
>               > > .........
>               > >
>               > > testerrorpage.jsp
>               > > -------------------
>               > >
>               > > <body>
>               > >
>               > > <br>
>               > >         An exception has occured.
>               > >         The name of the exception is :
><%=exception.getMessage() %>
>               > >
>               > > </body>
>               > >
>               > >
>               > > ______________________________________________________
>               > > Get Your Private, Free Email at http://www.hotmail.com
>               > >
>               > >
>
> >===========================================================================
>               > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
>"signoff
>               >JSP-INTEREST".
>               > > FAQs on JSP can be found at:
>               > >  http://java.sun.com/products/jsp/faq.html
>               > >  http://www.esperanto.org.nz/jsp/jspfaq.html
>               > >
>               >
>
>               ______________________________________________________
>               Get Your Private, Free Email at http://www.hotmail.com
>
>
>===========================================================================
>               To unsubscribe: mailto [EMAIL PROTECTED] with body:
>"signoff JSP-INTEREST".
>               FAQs on JSP can be found at:
>                http://java.sun.com/products/jsp/faq.html
>                http://www.esperanto.org.nz/jsp/jspfaq.html

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to