struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frans Thamura" <fr...@meruvian.org>
Subject Re: Putting Template inside .jar
Date Mon, 03 Mar 2008 01:17:58 GMT
hi jeromy,

i have several velocity template inside and i want to put in the jar also

i got this is the syntax to implement TemplatePath (below)

i dont get the relationship between freemarker and struts

because in my strutx.xml's package i just change the result to freemarker,
and .... done, the template engine is freemarker.

can give the glue


this is the freemarker template




<servlet>
  <servlet-name>freemarker</servlet-name>
  <servlet-class>*freemarker.ext.servlet.FreemarkerServlet*</servlet-class>

  <!-- FreemarkerServlet settings: -->
  <init-param>
    <param-name>TemplatePath</param-name>
    <param-value>/</param-value>
  </init-param>
  <init-param>
    <param-name>NoCache</param-name>
    <param-value>true</param-value>
  </init-param>
  <init-param>
    <param-name>ContentType</param-name>
    <param-value>text/html</param-value>
  </init-param>

  <!-- FreeMarker settings: -->
  <init-param>
    <param-name>template_update_delay</param-name>
    <param-value>0</param-value> <!-- 0 is for development only! Use
higher value otherwise. -->
  </init-param>
  <init-param>
    <param-name>default_encoding</param-name>
    <param-value>ISO-8859-1</param-value>
  </init-param>
  <init-param>
    <param-name>number_format</param-name>
    <param-value>0.##########</param-value>
  </init-param>

  <load-on-startup>1</load-on-startup>

</servlet>

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