Hi Siva,
Well - It is of course possible for you to call static public member
methods of any servlet class, but I guess that this is not your problem.
The problem is getting the instance of a servlet class which is controlled
by the servlet engine (could be JRun). One way to do it is to let the
servlet engine demand load the servlet class on intialization (I know JRun
allows this), and then have a static method that allows you to get the
instance of the servlet class.
public class MyServlet extends HttpServlet
{
MyServlet myInstance;
public MyServlet()
{
myInstance = this;
}
public static MyInstance getInstance() throws Exception
{
if(myInstance == null)
throw new Exception("No instance created at this time");
return myInstance;
}
}
Best regards
Christian Damsgaard
-----Oprindelig meddelelse-----
Fra: Siva Surya Kumar V [SMTP:[EMAIL PROTECTED]]
Sendt: 16. november 1999 08:15
Til: [EMAIL PROTECTED]
Emne: Calling servlet from a servlet...
<<Fil: ATT00004.txt; charset = Windows-1252>> <<Fil: ATT00005.htm;
charset = Windows-1252>>
___________________________________________________________________________
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