Top "Freemarker" questions

FreeMarker is a Java based template engine, a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates.

FreeMarker Current Date Comparison

Is it possible to do date comparisons against the current date in a freemarker template without passing the current date …

freemarker
Freemarker 'Collection.contains' functionality

From my java code I'm returning a Set<String>. The view needs to check if the Set contains …

java collections contains freemarker
Check variable type in FreeMarker

I have defined custom macro that contains one argument. It can be a String or List<String>. Is …

freemarker
Freemarker: an enum in an if statement

In my if statement, I want to compare a variable, which is a JDK 1.5 enum, to an enum literal. For …

java freemarker
Freemarker print date in template

I am trying to print the current date when the template is activated. I have read that I have to …

templates datetime freemarker pojo pretty-print
Format freemarker files in Eclipse

Actually we have freemarker files (ftl) under Eclipse + Freemarker plugin (from JBoss). Do you know a way to format ftl …

eclipse eclipse-plugin freemarker
how to use messages with freemarker in spring mvc?

In a .jsp I would use: <fmt:message key="welcome.title"/> to display a message from my messages.…

java spring spring-mvc freemarker
Adding spring library for usage of JSP Taglibs for security in Freemarker

I am using spring with freemarker as the template engine. Freemarker allows to use the Jsp Taglibs, for security for …

spring security jsp freemarker taglib
Freemarker get element from list

I am doing teplate which i will use in Smooks conversion. I need to get f.e. 2nd element of …

freemarker smooks
Write freemarker template to String output

I would like to have freemarker template output in String. I have a freemarker template file commonTemplate.ftl. <div&…

java freemarker