Re: Freemarker loading into JSP

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On 2008.06.02., at 12:46, Daniel Dekany wrote:

> Monday, June 2, 2008, 12:28:38 PM, Attila Szegedi wrote:
>
>> You could try using freemarker.ext.jsp.FreemarkerTag
>
> God! :) I felt something is wrong when I said that I don't know about
> such stuff...

:-)

>> - it's a JSP tag that evaluates a FreeMarker template embedded into
>> it. Note it'll cache the parsed template after first evaluation of
>> the tag (it assumes the template text is fixed). If your template
>> text can vary, you'll need to set caching="false" in the tag, but
>> that'll severely impact the performance, as the template text will
>> be reparsed on each evaluation.
>
> Just to prevent people misunderstand this, you are talking about that
> the "source code" of the template is fixed (and thus its parsed form
> is cached), not that the *output* of the template is fixed.

Indeed :-) I'd say it's an usual assumption when using a template  
engine, but yeah, it doesn't hurt to spell it out explicitly...

Attila.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.