We want to give the request and response objects from one servlet (say Servlet A) to another (say Servlet B). But we do not want Servlet A to wait until Servlet B finishes this request. We want to Servlet A to dispatch this info to Servlet B and continue with its own processing something like an asynchronous call? Is this possible with RequestDispatcher.forward() ???
Also can we make forward()calls in a loop..
eg.
RequestDispatcher rd = new RequestDispatcher(/servlet/ServletB);
for(int i=0;i<100;i++)
{
request.setAttribute("A",A[i]);
rd.forward(request,response);
}
Can anyone please rep.
Thanks and Regards,
Ganp.
Also can we make forward()calls in a loop..
eg.
RequestDispatcher rd = new RequestDispatcher(/servlet/ServletB);
for(int i=0;i<100;i++)
{
request.setAttribute("A",A[i]);
rd.forward(request,response);
}
Can anyone please rep.
Thanks and Regards,
Ganp.