• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IllegalStateException didnt occur when forwarding the request after commit

 
yogesh srinivasan
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried forwarding my servlet to a jsp after flushing my response. I didnt get any IllegalStateException and just was able to see the output of the servlet and the jsp output is ignored



I dont know why the exception has not caught
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you checked your server log file?
 
yogesh srinivasan
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah i'm able to see the exception.....in the logs...i was trying to look the server console for the exception...
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Yogesh!

Take a look here. I think it might be helpful!
 
Naveen Segu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi yogesh srinivasan,

You don't see the exception in the browser... you can check the log file for the exception. All the output is sent to browser before the flush() statement, rendered and rest of the code after flush() is ignored even if you put RequestDispatcher. Hope this helps..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic