dcsimg
Solving the problem for java.lang.IllegalStateException: Cannot forward a response that is already committed
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   suman_ganguly
Posted On:   Tuesday, December 21, 2004 05:53 AM

Here the problem is that, from a servlet after doing some validation I am passing the control to another servlet using forward method in RequestDispatcher. In the second servlet after doing all task I am passing the control to a JSP page using forward method in RequestDispatcher. But here, after the forward method benn called, I am getting the exception


java.lang.IllegalStateException: Cannot forward a response that is already committed


Please give me a remedy for that problem as soon as possible.

Re: Solving the problem for java.lang.IllegalStateException: Cannot forward a response that is already committed

Posted By:   Joilson_Cardoso  
Posted On:   Wednesday, December 22, 2004 06:17 AM

hey I get the same problem...

what I see is: if you have already execute some response method ....the http header consider you have already sent some data to browser... So you get the error.

try set property flush="false" into your jsp code.

I hope it helps

Joilson Cardoso
About | Sitemap | Contact