Here's what we have
<servlet>
<servlet-name>Freemarker</servlet-name>
<servlet-class>com.upmc.cancercenters.pathways.web.FreemarkerServlet</servlet-class>
<init-param>
<param-name>TemplatePath</param-name>
<param-value>/</param-value>
</init-param>
<init-param>
<param-name>default_encoding</param-name>
<param-value>ISO-8859-1</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Freemarker</servlet-name>
<url-pattern>*.ftl</url-pattern>
</servlet-mapping>
Also if you add
<welcome-file-list>
<welcome-file>index.ftl</welcome-file>
</welcome-file-list>
You can do return new ForwardResolution("/WEB-INF/someDir/"); and it will pick
up index.ftl for you.
Hope that helps
-----Original Message-----
From: Freddy Daoud [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2008 3:50 PM
To: [email protected]
Subject: Re: [Stripes-users] freemaker templates under the WEB-INF
Marcus, try it with this, since you are giving the full path to your
template in your Action Bean:
web.xml:
<param-name>TemplatePath</param-name>
<param-value>/</param-value>
Freddy
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users