Hi,
I am using response.sendRedirtect(), to call a
servlet which is on another webapp. The problem here is that the URL is exposed to the end user.
I need to call Servlet2 from Servlet1. Servlet2 is on a different webapp.
I need to call Servlet2 by passing username and password in the URL, the values of which I will be using to authenticate and on authentication will populate the session.
I don't want the username/password values to be exposed to the user.
I tried using RequestDispatcher but the same gave problems while using the session created from the request. I could invoke the doGet() of Servlet2 and I could create, populate the session and could also generate a form.
On submission of the form which calls the doPost() of Servlet2, the session is found to be invalid.
I am not facing the above session invalid problem when I am using response.sendRedirect() while I call Servlet2 from Servlet1.
Please help me solve this problem.
Thanks,
Sreeni
[ May 17, 2006: Message edited by: sreeni san ]