开发者

What are the options of View Engines in Java?

As we can see in this question, there are lots of cool v开发者_C百科iew engines to ASP.NET. But what about Java/JSP? What options do I have?

Thanks


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.


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.


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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜