Mike Whittaker <[EMAIL PROTECTED]> writes: > Every page on my site is a jsp that is made up of various <%@ included> .jsp > files. > Though the first include is always the same. > > Does the individual includes all get compiled into there own servlet or is > it jus the finished composite? > > Because if the former, then this servlets init() method would seem to be the > best place to put anything I need setting up just the once. Especially as I > need it setting up immediately. If I put it in one my other servlets it > won't be set up soon enough. > > I know there is something that loads all servlets on deployment, maybe this > is the answer, are there any pitfals in doing this? > > Otherwise just how do I overide the jsp's init() method?
You can't do that except by changing the JSP class, that would reduce your JSP functionality (because your JSPs would no longer extend HttpJspPageImpl). If your servlet container supports API v2.3 you can use a context listener to do something when the container starts. Nic Ferrier ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
