aspose file tools*
The moose likes JSF and the fly likes Error message: Cannot forward after response has been commited Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Error message: Cannot forward after response has been commited" Watch "Error message: Cannot forward after response has been commited" New topic
Author

Error message: Cannot forward after response has been commited

sonia pandit
Ranch Hand

Joined: Apr 19, 2008
Posts: 137


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
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
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://aspose.com/file-tools
 
subject: Error message: Cannot forward after response has been commited