tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Fathman" <afath...@one.net>
Subject RE: jspInit() and errors
Date Mon, 06 May 2002 04:26:29 GMT
Maybe you could set a member variable that the regular "service" method
would check?

Also you could use jdk1.4 logging or log4j in the jspInit method to log
an error.

Sorry that I don't know of anything better.

Abe

-----Original Message-----
From: Mattias Brändström [mailto:brasse@ludd.luth.se] 
Sent: Sunday, May 05, 2002 4:13 AM
To: Tomcat Users List
Subject: Re: jspInit() and errors


No, that doesn't work. jspInit() isn't declared to throw an exception 
and that makes it illegal to override it with a method that do throw an 
exception.

Abraham Fathman wrote:
> Mattias,
> 
> Can you just throw an exception?
> 
> Abe
> 
> -----Original Message-----
> From: Mattias Brändström [mailto:brasse@ludd.luth.se]
> Sent: Saturday, May 04, 2002 10:02 PM
> To: tomcat-user@jakarta.apache.org
> Subject: jspInit() and errors
> 
> 
> Hi!
> 
> As I understand it I can override jspInit() and do write some
> initialisation code for my JSP-page there. Now I have been looking at 
> the JSP 1.2 specification and I can't find any way to report errors
from
> 
> jspInit(). To me that seems like a good thing to do. If I can't
> initialise my page then I don't want it to be created/instantiated.
> 
> How do you guys handle this problem? Or perhaps you don't think it is 
> a
> problem? Then I'd like to know why! =)
> 
> Regards,
> Mattias
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message