what happens when we call sendError/setStatus after we called flush() on JSPWrite???
will flush() commits the response?? [This message has been edited by Ernest Lee (edited December 04, 2001).]
Fozan Zaidi
Greenhorn
Joined: Dec 03, 2001
Posts: 18
posted
0
When u call flush() response is commited so it is now too late to change status code or header fields of response.Well sendError/sendRedirect at this state will through illegalStateException where as setStatus/setHeader calls will simply be ignored