O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

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

A Tiles Overview

In many ways, it’s possible to consider Tiles as merely an extension of the Template tag library. But to do so would be to miss the real power of Tiles.

Using Tiles, you can define a base template page (called a layout), and then base your entire Web site on that layout. Because Struts is so closely integrated with Tiles, you can use layouts in place of JSP files in your Struts configuration file, as you’ll see later in the chapter.

As with most things related to Struts, it’s easier to see how Tiles works if you start by looking at an example. In this case, you’ll see how the Stocktracker application that we used in Chapters 5 through 11 can be rewritten to leverage Tiles.

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