Re: struts2: render JSP from action class

2008-06-23 Thread Esteve Camps Chust
He, it worked Jeromy. Thanks you very much for this solution. Esteve 2008/6/23 Jeromy Evans <[EMAIL PROTECTED]>: > Esteve Camps Chust wrote: > >> The problem is "renderJSP" method, so it constructs a customized JSP with >> username data. For example, "renderJSP" should return something like:

Re: struts2: render JSP from action class

2008-06-23 Thread Jeromy Evans
Esteve Camps Chust wrote: The problem is "renderJSP" method, so it constructs a customized JSP with username data. For example, "renderJSP" should return something like: Welcome [EMAIL PROTECTED] this is a welcome email. Do this: http://freemarker.sourceforge.net/docs/pgui

Re: struts2: render JSP from action class

2008-06-23 Thread Esteve Camps Chust
Ok. The subject: render a JSP/Freemaker/Velocity file in a Struts Action, to send an email. I mean, the "problem" is getting the HTML email body from an Action. The action skeleton would be: public void sendEmail extends ActionSupport { private String username; public String execute()

Re: struts2: render JSP from action class

2008-06-23 Thread Dave Newton
--- On Mon, 6/23/08, Esteve Camps Chust <[EMAIL PROTECTED]> wrote: > May you help me once again and guide me on the code? I've been > trying to do what you said me, but I cann't get it run. What specifically are you having issues with? If it's FreeMarker issues you might have better luck on a mo

Re: struts2: render JSP from action class

2008-06-23 Thread Esteve Camps Chust
Thanks Martin, I have found some tricks in mailerReader, but not what I'm looking for. Jeromy, thanks for your suggestion. May you help me once again and guide me on the code? I've been trying to do what you said me, but I cann't get it run. Thanks again. Esteve 2008/6/23 Jeromy Evans <[EMAIL P

Re: struts2: render JSP from action class

2008-06-23 Thread Jeromy Evans
Esteve Camps Chust wrote: hi all, this is my first email at struts list. I am a new user to struts2. I'm trying to get working the next scenario: having a mailer class, I want the message text be a rendered JSP. The action class calls a mailer class; this composes the mail from the rendering res

Re: struts2: render JSP from action class

2008-06-21 Thread Martin
1, 2008 10:29 AM Subject: struts2: render JSP from action class hi all, this is my first email at struts list. I am a new user to struts2. I'm trying to get working the next scenario: having a mailer class, I want the message text be a rendered JSP. The action class calls a mailer class; th

struts2: render JSP from action class

2008-06-21 Thread Esteve Camps Chust
hi all, this is my first email at struts list. I am a new user to struts2. I'm trying to get working the next scenario: having a mailer class, I want the message text be a rendered JSP. The action class calls a mailer class; this composes the mail from the rendering result of a jsp element (it wou