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

The Definitions Configuration File

Now that Tiles is installed, you can write the definitions file. Listing 16.1 shows the definitions for the Stocktracker application.

Listing 16.1. The Tiles Layout Definition File (stocktrack-tiles.xml)
 <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration//EN" "http://jakarta.apache.org/struts/dtds/tiles-config.dtd"> <tiles-definitions> <definition name="stocktrack.default" path="/layouts/stocktrackDefault.jsp"> <put name="header" value="/header.jsp" /> <put name="minibar" value="/minibar.jsp" /> </definition> <definition name="stocktrack.index" extends="stocktrack.default"> <put name="mainwindow" value="/home.jsp" /> <put name="title" value="Welcome to Stock Tracker"/> ...

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