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® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
FreeMarker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-user