• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flushing response and then forwarding not working as expected

 
Balraj Momi
Ranch Hand
Posts: 45
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
I tried this example to flush PrintWriter/ServletOutputStream and then forwarding it to another jsp. I was expecting it to throws IllegalStageException, but it worked fine in both cases. Could anyone please tell me what am I be doing wrong here.
Thanks in advance
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2533
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Balraj,

You should get an IllegalStateException! What server are you using? What is the URL that you are submitting?

Regards,
Frits
 
Balraj Momi
Ranch Hand
Posts: 45
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I have no idea what made it to work now . I can see IllegalStateException after I put try-catch block.
Earlier It was blindly going to forwarded url.

But anyway thanks much for looking into it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic