Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Titles and IllegalStateException

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 7319
45
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic