Can you use a custom tag and in the end tag write the contents of the out
steam to file? ie. wrap your jsp page in custom tags.
Alternatively I reckon you could chain a servlet that has the
responsibility of writing the response to a file also.
I think you can get out stream from the PageContext. (don't quote me I
don't have my book handy)
This doesn't seem to difficult.
How does buffering work when you chain servlets?
On Fri, 19 May 2000, Alan Ausi wrote:
> Hi:
>
> I have a urgent problem.
>
> I want save the JSP's output as a html file (not by
> hand). I think this is a basic
> problem but I can not solve it.
>
> Any one can help me?
>
>
> using "openstream" I can get static HTML from any
> URL,
> even outside the server.
>
> but the problem is I have no method to get the dynamic
> part of JSP because
> the URL is the same before or after I write the JSP.
> Would you please give me some suggestion using which
> method I can distinguish it?
>
> I once read a mail: it is said we can pretend the
> program is a browser, issue an http request
> to java webserver then read the response back.
>
> Would someone explain it in detailed example?
>
> Thanks in advance
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets