A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Web Component Certification (SCWCD/OCPJWCD)
IllegalStateException does not happen. Why not?
Joined: Aug 10, 2005
Aug 10, 2005 15:55:00
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:
- it saves me about five hours per week
subject: IllegalStateException does not happen. Why not?
B&S 2.2.2 - Unlock()
servlet: No return method after rd.forward?
Help needed, in Servelet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013