Templating in Java: What to use?

April 9, 2008

I’m looking into using a templating engine for formatting output from a Java component.  From what I can tell, the top 3 templating engines for Java are Apache Velocity, Jxp, and FreeMarker.

Right away, Velocity stands out given the reputation of the Apache Foundation.  Looking at Jxp, though, it’s appealing to be able to use standard Java code with the JSP-like syntax.  If we can believe the FreeMarker site comparing it to Velocity, FreeMarker has better support for number and date manipulations (among other things), which could be particularly important for my uses.

I haven’t tried any of these engines out, yet.  Rest assured, though, that I will try them and post my findings.


2 Responses to “Templating in Java: What to use?”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: