Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Musachy Barroso
Yes, that would be template file name. musachy On Thu, Feb 12, 2009 at 3:24 PM, Ignacio de Córdoba wrote: > > OK. Thanks for the advice. I tried to use Tiles2 because my user interface is > used with Tiles2. If I get a Tile for the email, the email received has the > same look&feel as the web pa

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Ignacio de Córdoba
OK. Thanks for the advice. I tried to use Tiles2 because my user interface is used with Tiles2. If I get a Tile for the email, the email received has the same look&feel as the web pages. And I can re-use JSP/JSTL/OGNL parts. I'll give FreeMarker a try... just a question... in the code you sent...

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Musachy Barroso
The thing is that neither JSP nor Tiles are designed for what you want to do. BTW, FreeMarker is already in your application. musachy On Thu, Feb 12, 2009 at 2:19 PM, Ignacio de Córdoba wrote: > > hi again, > thanks for your reply. I've never used FreeMaker or Velocity. I use > Tiles2... can you

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Ignacio de Córdoba
hi again, thanks for your reply. I've never used FreeMaker or Velocity. I use Tiles2... can you figure out if your solution can be solved with Tiles2. I wouldn't like to get into those, I'm sure great, technologies only for this. Thanks, Ignacio Musachy Barroso wrote: > > I don't know how to f

Re: How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Musachy Barroso
I don't know how to fix it, but i would never use JSP for this. I would suggest you use FreeMarker or Velocity which will be very easy to get working and won't break across different containers/versions. For example, for FreeMarker (which will be in the classpath already), I use this: public stati

How to render a JSP/Struts2 action to send it (mail, ...)

2009-02-12 Thread Ignacio de Córdoba
Hi there, I had a working solution that was fine for struts1 and doesn't work with struts2. The scenario is evey time the application needs to send a mail from an action (for example, when a user signs up, the system sends him a welcome mail) My solution got the JSP the following way: pu