Error message: Cannot forward after response has been commited
Joined: Apr 19, 2008
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?
Joined: Feb 01, 2008
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.
Joined: Dec 25, 2006
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