This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
ServletContext.getContext(String uripath) can get a reference to another servlet context, and from there you can access resources in that context such as Servlets. There are a few things to keep in mind:
1) Depending on the container, you will need to look at the documentation to see if you need configuration settings to allow this. By default it is not allowed. 2) Communication with the other Servlet may be via another Thread, so the the data may not arrive as you expect. 3) cross context communication is typically poorly implemented in containers, and is poorly defined in the spec. [ February 04, 2008: Message edited by: David O'Meara ]