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 21. FreeMarker

FreeMarker is a template engine written in Java that can be used with Struts. In fact, the Struts tag library uses FreeMarker as the default template language. FreeMarker supports more features than Velocity. For detailed comparison between FreeMarker and Velocity, read this:

<LINELENGTH>90</LINELENGTH>
http://freemarker.org/fmVsVel.html

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

Overview

To use FreeMarker in Struts, you don’t need to install additional software. The JAR file that contains the FreeMarker engine, the freemarker-VERSION.jar file, is already included in Struts deployment. In fact, without this file your Struts application won’t work because FreeMarker is the default template for the ...

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