O'Reilly logo

Struts 2 Design and Programming: A Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Velocity

The Apache Velocity Engine is an open source templating engine that supports a simple and powerful template language to reference Java objects. The Apache Velocity Project is an Apache project responsible for creating and maintaining the Apache Velocity Engine. The software is available for free download from http://velocity.apache.org. Struts includes the latest version of Velocity so there’s no need to download Velocity separately.

This chapter provides a brief tutorial on how to use Velocity in Struts.

Overview

Most Struts applications use JSP as the view technology. However, JSP is not the only view technology Struts supports. Velocity and FreeMarker (discussed in Chapter 21, “FreeMarker”) can also be used to display data. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required