Error message: Cannot forward after response has been commited
sonia pandit
Ranch Hand
Joined: Apr 19, 2008
Posts: 137
posted
0
This is the error message i get with the code above. If I use the redirect instead, i am getting a null for the request.getAttribute("selected") in the DownloadServlet. How do I do this?
Thanks,
Sonia
agnu sargar
Greenhorn
Joined: Feb 01, 2008
Posts: 9
posted
0
hello
might be you are re-forwarding a response which is already sent once(committed). you can check for null by setting an attribute with ServletContext object which will work.
Agnu.
sujith Acharya
Ranch Hand
Joined: Dec 25, 2006
Posts: 60
posted
0
Since you are using JSF framework, why are you going out of this framework? framework provides you the facility to seperate your business logic and navigation part. I dont think its necessary to forward the request to Servlet from a manged bean
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Error message: Cannot forward after response has been commited