Sending multiple requests to a jsp from a servlet

Hi all,

I have a requirement wherein I have to give multiple requests to same jsp but with different request parameters.Something like I have to call 10 phone numbers. The jsp I have will take the phone number from the request and will call to it. But I don't have an idea how I can call the jsp 10 times from the servelet since the request dispatcher methods will serve to call only once [since the control goes out if you call didpatcher.forward]. Please help

Thanks and Regards,

Vignesh

[515 byte] By [MysunScreena] at [2007-11-27 4:26:24]
# 1

well, cant you submit all telephone numbers at once? If you submit the same parameter multiple times (or form fields with the same names), you can retrieve all values for that one parameter using getParameterValues(). This way you can send 10 telephone numbers in one request and handle them all in one request.

gimbal2a at 2007-7-12 9:34:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi,

Thanks for your suggesstion. But, sending all the numbers once will not serve my purpose because My jsp will call to only one number at a time and I need to process all the 10 requests simultaneously and not one by one. So I think forwarding one number at a time is correct. But still I might have miss something here. Can you please suggest how to do this?

Thanks and Regards,

Vignesh.B

MysunScreena at 2007-7-12 9:34:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...