Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Velocity vs Apache Tiles

What's better? We are going to start a new web project and it's a question which technology to choose. Project includes Spring MVC + WebFlow. Any good/bad experience in support, extending, performance?

Thank you.

like image 350
StanislavL Avatar asked Feb 11 '11 08:02

StanislavL


People also ask

What is Apache Velocity used for?

Velocity is a Java-based templating engine. It's an open source web framework designed to be used as a view component in the MVC architecture, and it provides an alternative to some existing technologies such as JSP. Velocity can be used to generate XML files, SQL, PostScript and most other text-based formats.

What are Apache Tiles for?

Apache Tiles™ Tiles allows authors to define page fragments which can be assembled into a complete page at runtime.

What is Apache Velocity Engine?

The Apache Velocity Engine is a free open-source templating engine. Velocity permits you to use a simple yet powerful template language to reference objects defined in Java code. It is written in 100% pure Java and can be easily embedded into your own applications.

Is Apache Tiles retired?

So Apache Tiles has retired. I'm using Spring MVC framework and JSP. What alternatives are there? I saw Sitemesh, but it is a decorator and I need a template framework.


1 Answers

Velocity and Tiles are two different beasts — Tiles is a layout engine and Velocity is a template engine. They do not intersect anywhere in terms of functionality.

From your question I can guess you probably won't be using JSP. That's a smart move. Velocity is one of the template engines out there and it does an absolutely splendid job.

And if you choose to follow the template engine route for your view, then check out commentit. It's a small, simple and fast layout engine I created. It might serve your purpose perfectly.

like image 53
mainas Avatar answered Oct 18 '22 19:10

mainas