I have a
JSP page (say a.jsp) with FORM variables.
FORM variables in "a.jsp" are submitted to a
servlet (Servlet1).
Servlet1 has additional FORM variables.
After some processing is done in Servlet1, using response.sendRedirect I am redirecting the response to another 3rd party Servlet (Servlet2).
I would like to know how Servlet2 can recognize the form variables present in Servlet1.
Thanks.
A.JSP
-----
<SCRIPT LANGUAGE="JavaScript">
function Execute()
{
document.A.action = "/servlet/Servlet1";
document.A.submit();
}
</SCRIPT>
.......
.......
.......
<FORM NAME=A METHOD=POST ACTION="">
//FORM variables are present here
</FORM>
.......
Servlet1
--------
response.sendRedirect("servlet/Servlet2");
.......
.......
.......
<FORM NAME=Servlet1 METHOD=POST ACTION="">
//FORM variables are present here..These form variables could not be retrieved from Servlet2
</FORM>
.......