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

Putting It All Together

Now take a moment to walk through the entire flow of a page request using Tiles. Imagine that you request /index.do. Struts looks up the action, and finds that it should forward your request to the stocktrack.index layout. Tiles looks up that name and finds that it’s an extension of the stocktrack.default layout. That layout uses the stocktrackDefault.jsp template file. So, Tiles combines the attributes from the two definitions and hands control over to the template file, which populates the contents from the various source files.

There are several advantages to using Tiles this way. For one thing, you can change the entire look of the site by adding a new template file and pointing the stocktrack.default layout at ...

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