title: Getting template text from FreeMarker in Struts2 app
body: <p>I would like to generate email inside a Struts2 application, using Freemarker.
  As I am also using Freemarker for my view, I would like to "reuse" the same config.</p>
  
  <p>There is already a similar question for doing the same thing with Spring.
  <a href="https://stackoverflow.com/questions/230763/getting-template-text-from-freemarker-in-spring-app">Getting template text from FreeMarker in Spring app</a></p>
  
  <p>I am not sure where to start.</p>
  
  <p>I am looking at the code of <strong>org.apache.struts2.components.template.FreemarkerTemplateEngine</strong>.
  Should I replicate it ? or simply call it ? I am unclear on how to get back the rendered text.</p>