File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Question about response.getOutputStream() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question about response.getOutputStream()" Watch "Question about response.getOutputStream()" New topic

Question about response.getOutputStream()

Ted Dong

Joined: May 16, 2001
Posts: 15
What does response.getOutputStream() return?
I want to capture the reponse that is sent back to the browser (ie, the html that the jsp page produces) and save it as a file on the server.
Does anyone have any examples?
Thanks in advance.
Angela Lamb
Ranch Hand

Joined: Feb 22, 2001
Posts: 156
It returns an OutputStream, just like the name says. You can use it to write to the page, but it doesn't give you the page contents.
I agree. Here's the link:
subject: Question about response.getOutputStream()
jQuery in Action, 3rd edition