Re: get servlet instance

2007-07-28 Thread Skijor
> communication. Or a third class which can make the > shared information > accessible by both servlets. I opted for this. creating a singleton with synchronized accessors. Boardwalk for $500? In 2007?

Re: get servlet instance

2007-07-28 Thread David Smith
I strongly recommend you make that cached information available via another means like a request or session attribute. Servlets should ideally be stateless because they can serve any request for that resource with no guarantee any of them will be in the same session or from the same client as

Re: get servlet instance

2007-07-28 Thread Leon Rosenberg
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 informatio

get servlet instance

2007-07-28 Thread Skijor
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 dea