In my jsp I have a form that contains :
<form name="myForm" action="/ServletOne">
<input type="text" name="username">
<input type="password" name="password"/>
</form>
In ServletTwo, I have :
String username = request.getParameter("username");
String password = request.getParameter("password");
At the end of ServletOne, I need to redirect to ServletTwo. So I tried :
String redirectURI = "/ServletTwo?"+ request.getQueryString();
response.sendRedirect(redirectURI);
But request.getQueryString() returns null. So How could I redirect to "ServletTwo" without losing username and password parameters, knowing that ServletOne and ServletTwo are not in the same web appplication. And I don't have the right to modify the code of ServletTwo.
Thanks in advance