This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I have jsp page which uses the RequestDispatcher.forward() method multiple times.
I am using the apache tomcat 6.x version as my server. I have three deployments in the named test1,test2,test3.
For a particular http request i need to pass to all the three deployments.
For that i wrote a jsp page put it under the webapps/ROOT/testfporward.jsp
While executing this i am getting the following error.
"cannot forward after response has been committed"
Is there is anything wrong in my code.
Which is correct way to invoking multiple http requests for a incoming request?
Please help me to solve this issue..
Well, you can't forward a request once any output has been written to the client.
I suppose you could create a bunch of requests using a client library like Apache's HttpClient, but the purpose of what you're doing eludes me.
pankaj vijay
Ranch Hand
Joined: Apr 01, 2008
Posts: 75
posted
0
It is not possible to forward a request if one is all ready commited.. yes you can do 1 thing put if & else in such a way that at a time only one request can be forwarded...