you could save the instance in a static variable, which would be very bad style, but would work. A better style would be to use the application or session scope (depending on the nature of the cached information) for inter-servlet communication. Or a third class which can make the shared information accessible by both servlets.
regards Leon On 7/28/07, Skijor <[EMAIL PROTECTED]> wrote: > How to I obtain a reference to a servlet from another > servlet? For example, I want to call a public method > on another servlet because that servlet has cached > information I need. > > Thanks > > > > ____________________________________________________________________________________ > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > http://farechase.yahoo.com/ > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]