News for hackers. Stuff that matters.

Ask HN: JVM templating engines? Looking for JSP alternatives

For the first time, I'm building a JVM-based web app. I'm looking for a good replacement for JSPs. I've used Rails and Django extensively and like both their templating engines quite a bit - probably because of this experience jsp makes me want to gag a bit.

I've look briefly at Velocity but the perlish '$' syntax puts me off - though I could probably get over that.

Notably it only has to play friendly with java - Groovy, Clojure, Scala, are all viable options. I'm also considering using JRuby and just sticking with the erb I know.

Thanks.

( 3 comments | 2 points | on HN )
Re:Ask HN: JVM templating engines? Looking for JSP alternatives by floodfx on Tuesday May 04, 2010 @11:14PM (#1320225)
GXP is decent. (http://code.google.com/p/gxp/)

You could also try GWT (http://code.google.com/webtoolkit/). Obviously more than just a templating engine but very cool.

Re:Ask HN: JVM templating engines? Looking for JSP alternatives by dsickles on Tuesday May 04, 2010 @11:17PM (#1320230)
Re:Ask HN: JVM templating engines? Looking for JSP alternatives by va_coder on Tuesday May 04, 2010 @11:00PM (#1320201)
I'm a huge fan of Grails/Groovy. In general I prefer Ruby, but if you're in an environment with existing Java code and Java infrastructure, Groovy can be a great fit.