Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Titles and IllegalStateException" Watch "Titles and IllegalStateException" New topic
Author

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
Sandeep
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4442
    
    5

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Titles and IllegalStateException
 
Similar Threads
Spring MVC Integration of Tiles Complete Example
Tiles in struts?
Tiles - Tabs Doubt
Problem integrating Tiles into MyFaces/Richfaces
Using custom request processor and Tile framework