The short answer is no.
Take a look at velocity at http://jakarta.apache.org/velocity/index.html .


On Wed, 20 Oct 2004 12:02:33 -0400, Franck Lefebure
<[EMAIL PROTECTED]> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to