Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123