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

Reply via email to