Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about response.getOutputStream()

 
Ted Dong
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic