Dynamic page (Disney web site) construction and loading Screen

Dynamic page construction and loading Screen definitions Support for tile and layout reuse Support for internationalization Support for multiple channels There has been a Template tag library within the Struts framework for quite some time. These tags allow you to use a very basic templating approach to assemble your JSP pages in a web application. Although these tags are helpful in separating the content for a web application from its prescribed layout, the Tiles framework goes much further and actually provides a superset of the Template tag library’s behavior, as well as many other features. The Tiles framework was previously called Components, but the name was changed because that term is so overused. The Tiles documentation and source code still make reference to the old name in some places. Cedric Dumoulin created the Tiles framework to extend the concept of templates and provide developers with more flexibility and freedom when creating web applications built with JSP technology. The content for the web applications is still driven by JSP pages and JavaBeans. However, the layout is specified within a separate JSP page or, as we’ll see later, in an XML file. 14.3.1 What Is a Tile? A tile is an area or region within a web page. A page can consist of just one region or be broken up into several regions. Figure 14-1 illustrates an example from the Storefront application. Figure 14-1. The regions of the Storefront application A JSP page is typically made of several regions, or tiles. There’s nothing too special about the page, other than the fact that it’s designed to be used with the Tiles framework and makes use of the Tiles tag library. The most important aspect of a tile is that it is reusable. This is true for layouts as well as body content. Unlike most JSP pages, tile components are reused within an application and possibly across different applications. Other than that, there’s nothing that complicated about a tile. In fact, most of the examples we’ve seen so far can be classified as tiles, including Example 14-2 through Example 14-4.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

Leave a Reply