Get the Servelt Context using getServletContext() method.
Then invoke a method on the Servlet Context object called getServlet("name of the servlet to be communicated")
Then cast the result to the specifed servlet and then use that refernce for ur further process.
Sample Code
just a frame work) Servlet1 and Servlet2 are the
Servlet classes to be communicated.
public class Servlet1 extends HttpServlet
{
ServletContext cxt = getServletContext();
Servlet2 sl2 = (Servlet2)cxt.getServlet("Servlet2");
}
Hope this clear ur doubt!!!
If u have further doubts, let me know