Louis Tribble wrote:
> I have a JSP/-based web app (Tomcat) that needs to format text messages
> and stow them away. It seems silly to use a third party template
> library when a JSP page would provide exactly the output stream I
> need, but I don't know how to capture that stream. Any ideas?

Well, you could make a URLConnection to http://localhost/jspname.jsp,
get the OutputStream and write that to a FileOutputStream.

If you have a lot of data parameters to pass to the .jsp that would not
fit neatly into the URL query string, you could use the O'Reilly
HttpMessage class to do a POST...

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to