Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

response.getWriter() and response.getOutputStream.write()

843838Nov 23 2006 — edited Nov 23 2006
Hi,

How to use both response.getWriter() and response.getOutputStream.write in servlet.

When I am using both, serlet is throwing exception.
I am using response.getOutputStream.write(bytes) to write the image at browser and I would like to use printwriter for html tags.
I have to display two images in table format with some other stuff.
How to achive this with singe response.getOutputStream.write() OR response.getWriter()

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2006
Added on Nov 23 2006
2 comments
374 views