is it possible to reroute the output of a processed jsp page into a String or
StringBuffer object in order to send it as an email message with the Java
Mail API?
I know that you are using Tomcat v3.x, but you might want to consider
upgrading to v4.0 because you could use a Servlet Filter to
One option is to use Java's URL capabilities and open a connection to
tomcat, make the request, and capture the output of that in a
ByteArrayOutputStream. Something like this, though I did not even try to
compile it :
URL url = new URL(yourURL);
InputStream is = url.openStream();