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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]] > Sent: Saturday, May 04, 2002 10:02 PM > To: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
