Selva Prakash wrote:ok.. this is asked by interviewer...
is any other way to call servlet from another and send back result to called servlet..?
Sure. Use Ulf's method or make the servlets share data across a session variable.
The correct answer of course is the mention that this is a bad idea. Makes code hard to read and understand. A filter would do nicely if you need pre-controller processing.