-
Getting the HTML and writing to a file (3 messages)
- Posted by: Sam Choi
- Posted on: October 23 2001 21:43 EDT
Is there a way of getting the HTML from a servlet and writing it to a file?Threaded Messages (3)
- Getting the HTML and writing to a file by Andrey Aristarkhov on October 24 2001 05:50 EDT
- Getting the HTML and writing to a file by Weston Aiken on October 24 2001 09:37 EDT
- Getting the HTML and writing to a file by Weston Aiken on October 24 2001 09:40 EDT
- Getting the HTML and writing to a file by Weston Aiken on October 24 2001 09:37 EDT
-
Getting the HTML and writing to a file[ Go to top ]
- Posted by: Andrey Aristarkhov
- Posted on: October 24 2001 05:50 EDT
- in response to Sam Choi
The simplest way is to implement you own HttpServletResponse and give it to a servlet. -
Getting the HTML and writing to a file[ Go to top ]
- Posted by: Weston Aiken
- Posted on: October 24 2001 09:37 EDT
- in response to Andrey Aristarkhov
Sorry to get off the subject of this thread, but Andrey's response mentioned something Ive been wondering about.
If I were to implement my own request and response objects, how do I passed them to a servlet running within a servlet engine?
Thanks -
Getting the HTML and writing to a file[ Go to top ]
- Posted by: Weston Aiken
- Posted on: October 24 2001 09:40 EDT
- in response to Weston Aiken
To answer Sam's question..
It might be easier to just connect to the servlet via a URLConnection, get the InputStream and then write that stream to a file.