How can I access one servlet method from some other servlet in same context?

Bozidar Dangubic

You do not call methods on the servlet from other servlets. If you need to perform some functionality in many servlets, put that functionality in some other object that you can create from both servlets. Servlets are request-response mechanism and not just regular java classes that you call methods on it.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact