Can you describe what you mean by 'communicate'? There are a number of 'central' places which could be used to convey information between servlet contexts.
The easiest is a common database, but you could also use EJBs or another standard distributed layer, HTTP calls, common static code or the request dispatcher. It all depends on what you're looking for.
Joined: Aug 24, 2004
Hi manish, What you mean by 'communicate'. If you have to forward a request from one servlet to another in a different context you need to first get the other context. You can do something like this
Then you can use the returned context to forward you requestd,
Hope that helps... If not please be more specific about what you want to know.
Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.