Re: template

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thursday, June 21, 2012, 11:32:23 AM, tomaz wrote:

> Where is freemarker searching for templates in web application as war on Tomcat or Glassfish?

There's no standard location as far as FreeMarker is concerned. It's
up to the developers of the Web Application Framework (like Spring,
Struts, Stripes, etc.) or of the application.

> Or what is the best way to ship templates in war?

If it's up to you, then maybe put them under WEB-INF/templates and
then configure FreeMarker with
cfg.setServletContextForTemplateLoading(servletContext,
"/WEB-INF/templates").

> Regards, Tomaz

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.