cancel
Showing results for 
Search instead for 
Did you mean: 

Free marker template

en64026
Champ in-the-making
Champ in-the-making
Hi all

While using webscripts free marker template has been used to render the output.

Its like jsp it seems

Is there any specific reason to using this………. if so in which cases we can use this FTL.

What is advantage of the FTL over JSP?

Kindly clarify this doubt.

Thanks.

Regards,
Elavarasan N
2 REPLIES 2

pmonks
Star Contributor
Star Contributor
Freemarker is specifically designed to handle the kinds of tasks that a Web Script view (or Space template, etc.) is responsible for ie. producing some kind of text based output based on a data model of some kind.  While JSP can accomplish the same things, it's far more general than that (JSPs are really just Java classes after all), and as a result is not as specialised for these tasks as Freemarker.

There are also some practical considerations - Freemarker templates are interpreted, so hot redeployment etc. is trivial.  The same is not true of JSPs, since they're compiled down to classes, and hence run afoul of the various class reloading issues in current generations of the JVM.

Cheers,
Peter

en64026
Champ in-the-making
Champ in-the-making
Thanks Peter…………..

I have one more doubt where and all we can use free marker template in a project using alfresco like the one we used in search component………….

and can i replace FTL instead of JSP in my project.

Thanks in advance.

cheers
Elavarasan N.