> -----Original Message-----
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jianjun Fu
> Sent: 13 December 1999 17:18
> To: [EMAIL PROTECTED]
> Subject: Re: tracking initialization and destruct
>
>
> But where do you put the java file that implement (jspInit/jspDestroy)
> jspPage interface. The _jspService file is produced by compile the jsp
> page. can you put jspInit/jspDestroy in the jsp page? If you
> put in other
> directories, do you have to call it explicitly from your jsp page?

All you have to do is define those methods within <%! ... %> tags in your
Jsp page. This has the effect of adding the methods to the servlet class
generated by the Jsp engine (along with _jspService).
They will be called automatically when appropriate by the Jsp/servlet
engine.

HTH,

Steve S

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to