| Author |
IllegalStateException problem
|
Joshua Antony
Ranch Hand
Joined: Jun 05, 2006
Posts: 254
|
|
Above is part of a code in a Servlet. But I am not getting IllegalStateException in the line writer.println("After Flush"); although I have committed the response the line before. Where am I going wrong? Regards, Joshua
|
SCJP,SCWCD, Into ATG now!
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
|
Nothing prevents you from outputting after it has been flushed.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Tridib Samanta
Ranch Hand
Joined: Apr 28, 2004
Posts: 128
|
|
|
No method of PrintWriter class throws IllegalStateException. You will get IllegalStateException if you try to forward the request to other page after calling flush().
|
Thanks, Tridib
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
|
 |
 |
|
|
subject: IllegalStateException problem
|
|
|