My first thought would be to save a reference in a static during the
servlet init method.
At 11:22 AM -0700 05/05/2001, Manish Shah wrote:
>hello everyone,
>I did go through the RequestDispatcher but....how do I
>get a direct reference to a servlet instance and call
>its methods directly.
>
>Using the deprecated getServlet method it was done
>this way...
>myLogonApp = (AppLogonServlet)
>getServletConfig().getServletContext().getServlet("mum_cs.AppLogonServlet");
>
>Please do let me know...or maybe if anyone knows some
>piece of code which used the RequestDispatcher to do
>this..or is it that it cant be done this way anymore
>in the new API and the whole program logic itself has
>to be changed...
>I really appreciate any help...
>
>Manish
>
>ps. I am a little new to servlets....:)
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.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
--
---
Brad Cox, Ph.D.; [EMAIL PROTECTED]
Phone: 703 361 4751 Cell: 703 919-9623
http://virtualschool.edu
___________________________________________________________________________
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