File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Question about response.getOutputStream()" Watch "Question about response.getOutputStream()" New topic
Author

Question about response.getOutputStream()

Ted Dong
Greenhorn

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: http://aspose.com/file-tools
 
subject: Question about response.getOutputStream()
 
Similar Threads
Does write() commit a response?
HttpSessionActivationListener
excel file generation in weblogic portal
binary and text data
response.setContentType not working in case of Excel