response.getWriter() and response.getOutputStream.write()
843838Nov 23 2006 — edited Nov 23 2006Hi,
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