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

Cannot forward after response has been committed

Ansar Shah
Greenhorn

Joined: May 02, 2007
Posts: 29
Hello All,

In an Action class's execute(..) method, when I use the PrintWriter's println() method, i can not forward the page by using
actionMapping.findForward("success");

Instead it gives following exception:


I know this is the valid case of this exception to occur. But not sure about the solution of this problem.
Please Help!
Markandey Sahu
Greenhorn

Joined: Jun 29, 2006
Posts: 13
write return null; instead of mapping.findForward();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot forward after response has been committed