Since JSPs are fundamentally servlets, I don't see anyway you could do this in the absence of a Servlet container.
Joe
At 12:02 PM -0400 10/20/04, Franck Lefebure wrote:
Hello,
I would like to know if there is a way to use a jsp file to format an email body
(something like a velocity template)
(I don't want to embed emailer custom tags in the jsp)
In my idea I would like to find a way to do something like that :
------------------------------ example.jsp : ------------------------------ <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> <html> Some String : <bean:write name="myBean"> </html> ----------------------------- example.java : ----------------------------- Template myEmailTemplate = new Template("example.jsp"); myEmailTemplate.setAttribute("request", "myBean", "the value of my string"); String messageBody = myEmailTemplate.format();
Any idea ? -- Franck Lefebure equipe web http://www.orangecaraibe.com
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place."
- Carlos Santana

