Hi Pascal,
Assuming you are using JSP1.0, the errorpage.jsp should have a directive
<%@ page iserrorpage="true"%>. Only when this directive is set for a
page,
the implicit exception variable is accessable.
Pascal Guilloteau wrote:
> I'm new on JSP... so sorry for this 'stupid' question maybe...
>
> I try to cat the ERRORPAGE,
> so I use an ERRORPAGE directive in my JSP Page :
> <%@ page ERRORPAGE="/errorpage.jsp" %>
>
> But the ErrorPAge.JSP
> I still have an error from JRUN 2.3 :
> *****************************
> 500 Internal Server Error
>
> JSP Compile Error(s)
> ------------------------
> D:\JRun\jsm-default\services\jse\servlets\jsp\errorpage.java, line 68:
> Undefined variable or class name exception
>
> out.print("" + ( exception.getMessage() ) );
> *************
>
> Here my errorpage.jsp source :
> <HTML>
> <HEAD><TITLE>ERROR PAGE JSP</TITLE></HEAD>
> <BODY>
> <H1>ERROR PAGE</H1>
> <H2>I'm a JSP Error File !!!</H2>
> <%= exception.getMessage() %>
> <!% exception.printStackTrace(out); %>
> <!DISPLAY PROPERTY=exception:message>
> </BODY>
> </HTML>
>
--
Janco Tanis
------------------------------------------------------------
COAS, Your partner in computer aided services
Nijverheidsweg 34 Tel: +31 (0) 187 49 3222
Postbus 44 Fax: +31 (0) 187 49 2912
3250 AA Stellendam 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".