Hi,
You can have another class invoke your JSP via a URL object.
This example has not been compiled, but is given just to illustrate the
concept...
URL url = new URL("your.jsp");
URLConnection connection = url.openConnection();
BufferedReader br = new BufferedReader(new
InputStreamReader(url.openStream()));
PrintWriter out = new PrintWriter(new BufferedWriter(new
FileWriter("your.html")));
Now loop through the buffered reader and output to your print writer.
Good luck!
Jeff Ryan
The Hartford
-----Original Message-----
From: GRAZIANO SCARTAPACCHI [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 10:08 AM
Subject: Save JSP page result before sending response
Hi all,
Could you help me ?
How can save into local HTML file (on server side) the result of the JSP
before
forwarding it to the browser ?
This is because my JSP produces a order report to the client but also I have
to
send it by e-mail.
Thanks all
gscarta
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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
FW: Save JSP page result before sending response
Ryan, Jeff J (Comm Lines, IT) Tue, 13 Mar 2001 07:18:52 -0800
- Save JSP page result before sending response GRAZIANO SCARTAPACCHI
- Re: Save JSP page result before sending... Geert Van Damme
- Ryan, Jeff J (Comm Lines, IT)
