14.3.2 Using a Layout Tile In the Tiles (Web hosting compare)

14.3.2 Using a Layout Tile In the Tiles world, a layout is what we have been referring to as a template. A layout serves the exact same purpose as a template that is, to assemble a group of tiles to specify the format of a page. Example 14-2 is, in fact, a Tiles layout. The syntax between Tiles and a template library like the one included with Struts is almost identical. The Tiles framework provides a superset of the functionality included with the standard Struts template tags defined by David Geary, but it takes the concept of templates even further by providing additional functionality. Layouts also are considered tiles. JSP pages and even entire applications can reuse layouts, and it’s common to build a library of layouts that are used in many different projects. The Tiles framework comes with several prebuilt layout tiles that you can reuse or modify as needed. The included layouts are: Classic layout Renders a header, left menu, body, and footer Columns layout Renders a list of tiles in multiple columns, each of which renders its tiles vertically stacked Center layout Renders a header, left tile, right tile, body, and footer Menu layout Renders a menu with links Tabs layout Renders several tiles in a tabs-like fashion Vertical box layout Renders a list of tiles in a vertical column Because one of the main goals of Tiles is reusability, you can reuse these layouts within your application with little or no modifications. You also have the freedom to customize the layouts in any way you need. 14.3.3 Planning Your Layout It’s very important that you plan your layout requirements ahead of time. Trying to decide how your site is going to look after it’s already built is definitely not the right approach. This decision is typically made by a human factors team, product management, or possibly the web developers
We recommend high quality webhost to host and run your jsp application: christian web host services.

Leave a Reply