You can use the ERRORPAGE directive: <%@ ERRORPAGE="pageURL" %>. This
directive names the file to be displayed should an error codition be
encountered. You can access a special bean inside the file pageURL points
to: the exception bean. Without declaring it, you can access information
about the most recent error. Once again: the information in the exception
bean is _only_ accessible from the page designated by the ERRORPAGE
directive.
HTH
Volker Stiehl
-----Ursprungliche Nachricht-----
Von: Werner Hennrich [SMTP:[EMAIL PROTECTED]]
Gesendet am: Montag, 1. Marz 1999 10:33
An: [EMAIL PROTECTED]
Betreff: AW: exception handeling in JSP
HI Guy
I couldn't find a better way to deal with this either; too bad.
I really hope the JSP 1.0 Spex will provide some simple means for that.
Any non-programmer who has to work on such a JSP page will most
propably not understand what is going on there and have a good
reaon to dislike JSP.
bye, Werner
> -----Ursprungliche Nachricht-----
> Von: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Guy Piekarz
> Gesendet am: Sonntag, 28. Februar 1999 14:41
> An: [EMAIL PROTECTED]
> Betreff: exception handeling in JSP
>
> Hi
>
> Is there a way that the 0.92 spec handles Exceptions e.g.:
>
> In the JSP page a <USEBEAN> tag defines a bean , and this bean throws
> exception - in one of it's getXXX method
> if I invoke this method from ths jsp I must use the try/catch
> statement -
> ( or else receives a compilation problem) -
> this obligation really makes the page ugly -
> maybe there is a way that exceptions thrown on the server redirect the
> client to an error page - or something...
>
>
> GUY PIEKARZ
> Tel : +972-9-7765161
> email :[EMAIL PROTECTED]
>
> ==================================================================
> =========
> 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".
>
===========================================================================
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".
===========================================================================
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".