But that object will be accessible from any servlet in the application. Is there any elegant way by which i can call a method in a servlet from the other servlet?
I want to save the state of a servlet, which is done when the saveState() method of the servlet is called. If i place the method in a common object then i will also have to pass all the properties of that servlet to that object. and i wnat to control the savestate() methods of several servlets. this will become extremely tedious.
Related Questions
- But that object will be accessible from any servlet in the application. Is there any elegant way by which i can call a method in a servlet from the other servlet?
- VBA has an InputBox function, and theres also an InputBox method for the Application object. Are these the same?
- Why is the application a code ref rather than an object with a ->call method?