This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Cannot forward after response has been committed
 
It's not a secret anymore!