File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Web Component Certification (SCWCD/OCPJWCD)
can sendError be called after flush()??
Joined: Aug 20, 2001
Dec 04, 2001 19:13:00
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).]
Joined: Dec 03, 2001
Dec 06, 2001 05:17:00
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
where as setStatus/setHeader calls will simply be ignored
Joined: Jul 05, 2001
Dec 06, 2001 05:26:00
Well Ernest, setStatus() & setContentType() are the two methods that must be used b4 using any respone body....
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
I agree. Here's the link:
subject: can sendError be called after flush()??
sendError and IllegalStateException
Please answer these few doubts
sendRedirect ( qsn from Study kit)
doubt in Exception occured by sendError()
Confused with flush() behavior
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014