Location of FTL files in webapp

3 messages Options
Embed this post
Permalink
strutstwouser

Location of FTL files in webapp

Reply Threaded More More options
Print post
Permalink
Hi,

Is there any preference on where to place FTL files in a J2EE webapp - for example, we place JSP files inside /WEB-INF. 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.) ? .Is there any performance impact one way or other?

Thanks!
Newman, John W

Re: Location of FTL files in webapp

Reply Threaded More More options
Print post
Permalink
Should be under WEB-INF, they are server side content just like jsp and you don't want anyone to steal that. do you?  


-----Original Message-----
From: strutstwouser [mailto:[hidden email]]
Sent: Wednesday, September 23, 2009 1:54 PM
To: [hidden email]
Subject: [FreeMarker-user] Location of FTL files in webapp


Hi,

Is there any preference on where to place FTL files in a J2EE webapp - for
example, we place JSP files inside /WEB-INF. 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.) ? .Is there any performance impact one way
or other?

Thanks!
--
View this message in context: http://www.nabble.com/Location-of-FTL-files-in-webapp-tp25531229p25531229.html
Sent from the freemarker-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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
Daniel Dekany

Re: Location of FTL files in webapp

Reply Threaded More More options
Print post
Permalink
In reply to this post by strutstwouser
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