3

As we can see in this question, there are lots of cool view engines to ASP.NET. But what about Java/JSP? What options do I have?

Thanks

Community
  • 1
  • 1
goenning
  • 6,514
  • 1
  • 35
  • 42

4 Answers4

3

For general templating engines, FreeMarker is a good alternative to Velocity - it has a nice macro system, clean syntax and semantics. These are often combined with a page layout / composition framework like Apache Tiles or SiteMesh.

A Lee
  • 7,828
  • 4
  • 35
  • 49
1

Velocity is a very simple view engine. Its functionality may seem a little bit limited, but thats the idea. If you need to do more complex tasks they should be performed in server side code.

Enrique
  • 9,920
  • 7
  • 47
  • 59
0

There is also resin/quercus which is a 100% java implementation of PHP. I've always liked how PHP integrates with HTML, although there's not much else I like about PHP. It's popular -- seems like you could easily cop a Wordpress theme into your java app.

DynamoDan
  • 16
  • 2
0

Are you looking for Java's MVC (for the web)? That's JSF.

Third-party MVC: What's the most minimal Java web MVC framework?

Community
  • 1
  • 1
Matt Ball
  • 354,903
  • 100
  • 647
  • 710
  • Just wanted to post a answer, but you nailed it so good that I canceled it –  Apr 08 '11 at 20:35
  • 1
    I'm not sure if a "MVC framework" fits the ASP.NET's ideology behind "View Engine". I've checked the code examples in the linked question and it seems to be more about template engines and/or custom taglibs and/or custom expression language resolvers. Well, for JSF there's at least the great Facelets :) – BalusC Apr 08 '11 at 21:10
  • No, I already choose VRaptor as my MVC framework. Now i'm looking for view engines (is it the same as templates engines?). – goenning Apr 08 '11 at 22:27