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 Titles and IllegalStateException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Titles and IllegalStateException" Watch "Titles and IllegalStateException" New topic

Titles and IllegalStateException

Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi Friends,
I have a jsp in which there is <jsp:forward page="<%= response.encodeURL(jspDisplay) %>" />. It is working fine when I am not using tiles but when I am using tiles it is giving
Following exception
login.jsp] Cannot forward after response has been committed' java.lang.IllegalStateException
Could you help me out from this problem
Thanks in adv
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6286

When using Struts/Tiles, you would let the Action classes handle flow control. I would remove the jsp:forward tag and use an appropriate mapping.findForward() statement in the Action's execute()/perform() to forward to the appropriate page.

Junilu - [How to Ask Questions] [How to Answer Questions]
Have you checked out Aspose?
subject: Titles and IllegalStateException
It's not a secret anymore!