Hi,

it is not Tomcat specific, but a part of the JSP 1.1 spec. See chapter 1.4.1 and
3.1.

To override these methods you simply have to write a declaration in your JSP:

<%!
public void jspInit() {
// do stuff
}

public void jspDestroy() {
// do stuff
}
%>

If this does not work with JRun, ask Allaire and/or file a bug report.

Cheers,

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.2 servletengine
  Java Server & Servlets   The web-application book
  The WebApp Framework        http://www.webapp.de/

Kedar Sardesai wrote:

> Hi friends,
>
> I wish to override the init and the destroy methods in a jsp page. We
> are using Jrun 2.3.3
> I read  on jguru.com that you have to override jspInit and jspDestroy
> methods.
> However, this looks Tomcat specific and doesnt seem to work under Jrun.
>
> Please Help!
>
> Thanks
> Kedar
> P.S.:I would appreciate if you can provide some example code.

Who wouldn't :-)

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to