Re: FreemarkerServlet and Templates
"Newman, John W" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <D688C4D318A63D4290AA94A33E06F7D2029F70E843@msxmbxnsprd14.acct.upmchs.net> |
Templates go inside /WEB-INF/ ... init param is / <servlet> <servlet-name>Freemarker</servlet-name> <servlet-class> freemarker.ext.FreemarkerServlet</servlet-class> <init-param> <param-name>TemplatePath</param-name> <param-value>/</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> -----Original Message----- From: Keith Swallow [mailto:[email protected]] Sent: Thursday, July 01, 2010 4:48 PM To: [email protected] Subject: [FreeMarker-user] FreemarkerServlet and Templates Greetings, I'm trying to figure out where the FreemarkerServlet looks for templates by default. I read but don't really understand the javadoc. "TemplatePath specifies the location of the templates. By default, this is interpreted as web application directory relative URI. ... Default value is class:// (that is, the root of the class hierarchy)." This sounds like I should put my templates either inside my webroot or inside my src folder (next to com). Where should I put my templates? Thanks in advance! Keith ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ FreeMarker-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-user ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first