struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esteve Camps Chust" <eca...@gmail.com>
Subject Re: struts2: render JSP from action class
Date Mon, 23 Jun 2008 16:28:08 GMT
Heyyyy, it worked Jeromy. Thanks you very much for this solution.

Esteve

2008/6/23 Jeromy Evans <jeromy.evans@blueskyminds.com.au>:

> 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:
>>
>> <html>
>>  <body>
>>     <p>Welcome *ben@bar.com*</p>
>>     <p>this is a welcome email.</p>
>>  </body>
>> </html>
>>
>>
>>
> Do this:
> http://freemarker.sourceforge.net/docs/pgui_quickstart_all.html
> inside your action.
>
> (where test.ftl contains the html above)
>
> then pass the result to your emailer.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message