Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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()??
Please answer these few doubts
sendError and IllegalStateException
Confused with flush() behavior
sendRedirect ( qsn from Study kit)
doubt in Exception occured by sendError()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013