A repeated question (llok at the archives) but the solution is to access the
JSP using URLConnection, retrive it's result stream and place that in the
mail.
you can place that code whenever you want, but it has to run in the same
environment if you want to pass on some Java objects to the JSP, so runing
it from a servlet is not a bad idea.
lee
Lee Elenbaas
ViryaNet
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.viryanet.com/
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Jens Laufer
Sent: Tuesday, July 04, 2000 10:58 AM
To: [EMAIL PROTECTED]
Subject: JSP-Page as Template for Mails???
Hello everbody,
I want to create a Servlet, that sends
dynamic content as an email using the MailAPI.
I want to use a JSP-Page as a template for that
mail. How can I do that?
Thanks,
Jens
===========================================================================
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