Re: Location of FTL files in webapp

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, September 23, 2009, 7:53:53 PM, strutstwouser wrote:

> Hi,
>
> Is there any preference on where to place FTL files in a J2EE webapp - for
> example, we place JSP files inside /WEB-INF.

Store them wherever it makes the most sense in your application.
Storing under WEB-INF has the advantage the you can't accidentally
make the templates available in their raw form.

> Should FTLs be part of the WAR file in the appserver or can they be
> hosted on a webserver (like other static files like css, js etc.)?

They must be part of a Web application, as they must be processed on
the server side.

> .Is there any performance impact one way or other?

Practically no. (One storage mechanism can be faster than other, but
there is no FreeMarker-specific performance impact there. Also,
templates are usually cached by FreeMarker, so they are read from the
storage only once, and then only their last-modification-date is
checked sometimes.)

> Thanks!

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
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.