File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 4419

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]
subject: Titles and IllegalStateException
Similar Threads
Problem integrating Tiles into MyFaces/Richfaces
Using custom request processor and Tile framework
Tiles - Tabs Doubt
Tiles in struts?
Spring MVC Integration of Tiles Complete Example