tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Hanna" <aut...@philhanna.com>
Subject Throwing exceptions from jspInit
Date Thu, 01 Jun 2000 03:21:10 GMT
In the JSP 1.1 environment, you can no longer override the init() method, but instead you can
override jspInit(), which is called automatically:
 
final public void init(ServletConfig config) throws ServletException {
   this.config = config;
   jspInit();
}
 
My question is, if you detect an error in jspInit(), how are you supposed to throw an exception
(like UnavailableException or
ServletException)?  You can't change the jspInit() signature, which is simply
 
public void jspInit()
 
with no exceptions.  And init() is final, so you can't change that. 
 
Is this a hole in the spec?
 


Mime
View raw message