Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of
Clojure in Action
this week in the
Web Component Certification (OCEJWCD)
IllegalStateException does not happen. Why not?
posted 10 years ago
According to HFSJ, I should get an
if I redirect or dispatch the request after writing to the response. But that is not happening.
response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("test"); out.flush(); response.sendRedirect("/anotherURL.jsp");
No exceptions occur. The sendRedirect statement is simply ignored.
If I remove the flush() line, then it gets redirect but still without the exception.
I agree. Here's the link:
Help needed, in Servelet
B&S 2.2.2 - Unlock()
servlet: No return method after rd.forward?