Re: FreemarkerServlet and Templates
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Thursday, July 1, 2010, 10:47:44 PM, Keith Swallow wrote: > 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. There it said where. So by default it's on the same place as all your static .html files and .jsp files would be. Only these have .ftl extension. > ... 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? Inside the web root, by default. (You don't have to stick to the default, however... some prefer putting templates under WEB-INF/templates, some into Java packages.) > 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 > -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ 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