I have some freemarker templates (general purpose, i.e. not
specifically for struts2) that generate html fragments, which I would
like to include in some jsp pages (in a struts2 environment).

Which are my alternatives? At first I tought of making a general jsp

  <jsp:include page="includeFreemarkerS2.jsp">
       <jsp:param name="templateName" value="test/foo.ftl" />
  </jsp:include>

where includeFreemarkerS2.jsp invokes (with Java scriptlet) my already
working aplication logic that finds-parses-fills the template, getting
the datamodel from the corresponding scope. But I am not sure of how
to pass some datamodel that wraps the ValueStack to Freemarker. And I
suspect there must be a simpler and nicer solution.
Suggestions?

HernĂ¡n

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to