• 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
Posts: 2782
174
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!