It's not the servlet calling the another servlet. HttpServletResponse.sendRedirect instructs the browser to do the redirection - it's the browser, which initiates a new request to the given destination. So there's no direct way for servlet1 to have an acknowledgement. Why do you want to do that?
Joined: Sep 03, 2009
ok.. this is asked by interviewer...
is any other way to call servlet from another and send back result to called servlet..?