Also, this would allow you to control the type of error pages to display
rather than the one limited error page directive.

On Tue, 6 Apr 1999, Jim Tsang wrote:

>
> Instead of using the error page directive, I think you can catch the
> exception in the bean, put it in HttpSession, forward to/include an error
> page where you can obtain the exception from HttpSession and display the
> exception.
>
> On Tue, 6 Apr 1999, Prasanna wrote:
>
> > Hi,
> >
> >   I am also facing the same problem. If the exception is thrown at the =
> > JSP bean, the "errorpage" directive at JSP doesn't trap this exception.  =
> > If exception is thrown by JSP it self  with in <%...%> tags then =
> > exception is caught. I am using JRUN 2.3, NT4.0 and MS-IIS. Is this =
> > problem specific to JRUN?. How do other servlet engines behave?. How to =
> > solve this problem?. Any ideas!
> >
> > Thanks and regards
> > Prasanna
> > [EMAIL PROTECTED]=20
> >     -----Original Message-----
> >     From: Tuyen Tran <[EMAIL PROTECTED]>
> >     To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> >     Date: Thursday, April 01, 1999 12:49 AM
> >     Subject: Exceptions in JSP-aware beans
> >    =20
> >    =20
> >     If the processRequest method of a JSP-aware bean throws an exception =
> > (say NullPointerException), shoudn't the JSP runtime detect the =
> > exception and redirect to an error page? I've tried this with both JRun =
> > 2.3 and the Sun 0.92 reference implementation, and they both swallow the =
> > exception. The JRun implementation does at least output the stack trace =
> > to the log, but shouldn't bean exceptions propagate up the normal error =
> > page handling mechanism?? Is this part of the design, or is it a bug?
> >     =20
> >     Tuyen Tran
> >     [EMAIL PROTECTED]
> >     =20
> >
>
> ------------------------------------------------------------------------
> Jim Tsang                             Phone: (510) 628-0100
> Scientific Applications Specialist    Fax: (510) 628-0108
> Pangea Systems Inc.                   email: [EMAIL PROTECTED]
> 1999 Harrison Street, Suite 1100        URL: http://www.panbio.com
> Oakland, CA 94612
> ------------------------------------------------------------------------
>
>

------------------------------------------------------------------------
Jim Tsang                               Phone: (510) 628-0100
Scientific Applications Specialist      Fax: (510) 628-0108
Pangea Systems Inc.                     email: [EMAIL PROTECTED]
1999 Harrison Street, Suite 1100        URL: http://www.panbio.com
Oakland, CA 94612
------------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to