Forums Register Login

IllegalStateException does not happen. Why not?

+Pie Number of slices to send: Send
Hello,

According to HFSJ, I should get an IllegalStateException if I redirect or dispatch the request after writing to the response. But that is not happening.

In any servlet's doPost():


No exceptions occur. The sendRedirect statement is simply ignored.
If I remove the flush() line, then it gets redirect but still without the exception.

Thanks
There's a city wid manhunt for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 655 times.
Similar Threads
Help needed, in Servelet
B&S 2.2.2 - Unlock()
response.sendRedirect() behaviour
SystemExceptions
servlet: No return method after rd.forward?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:27:41.