Hi, on commons-dev there was at begin of October a discussion in Commons Email project and Velocity templates. Perhaps you could benefit from that mails (I have no details in my mind, only the happend discussion)
Regards, Matthias > -----Original Message----- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 20, 2004 6:49 PM > To: Struts Users Mailing List > Subject: Re: use strutsed jsp as email template ? > > > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]