aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes IllegalStateException does not happen. Why not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "IllegalStateException does not happen. Why not?" Watch "IllegalStateException does not happen. Why not?" New topic
Author

IllegalStateException does not happen. Why not?

Otto Teixeira
Greenhorn

Joined: Aug 10, 2005
Posts: 12
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IllegalStateException does not happen. Why not?