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
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: 6529

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:
subject: Titles and IllegalStateException
jQuery in Action, 3rd edition