Mike,
Override the jspInit() method like this in your JSP.

<%!
public void jspInit() {

}
%>

-Richard


At 06:43 PM 5/9/2002 +0100, you wrote:
>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?
>
>
>--
>Mike Whittaker
>[EMAIL PROTECTED]
>http://www.hotpud.com
>
>___________________________________________________________________________
>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

___________________________________________________________________________
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

Reply via email to