Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Component Certification (OCEJWCD)
can sendError be called after flush()??
Ernest Lee
Ranch Hand
Posts: 145
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 18
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Ashik Uzzaman
Ranch Hand
Posts: 2379
I like...
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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!
Ashik Uzzaman
Director of Engineering, Twin Health, Mountain View, CA, USA
The only cure for that is hours of television radiation. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
sendError and IllegalStateException
Please answer these few doubts
sendRedirect ( qsn from Study kit)
doubt in Exception occured by sendError()
Confused with flush() behavior
More...