,ch14.9433 Page 443 Monday, February 14, 2005 12:55 PM
Example 14 3. Laying out Tiles components in a reusable JSP (continued)
You can create a JSP page, as shown in Example 14 4 (view_start_page.jsp), that ren
ders the definition using the layout.
Example 14 4. Rendering a Tiles definition in a JSP page
<%@ taglib uri="http://struts.apache.org/tags tiles" prefix="tiles" %>
Here's another JSP page (view_page_one.jsp) that uses the same definition:
<%@ taglib uri="http://struts.apache.org/tags tiles" prefix="tiles" %>
Reusing a Common Page Layout with Tiles | 443
This is the Title of the Book, eMatter Edition
Copyright 2005 O'Reilly & Associates, Inc. All rights reserved.
footer
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved