,ch14.9433  Page 442  Monday, February 14, 2005  12:55 PM
Example 14 2. Prototype HTML layout page (continued)
    Page title
    
        
            
        
        
            
            
            
        
        
        
    
                

Page title

            
                

Navigation Sidebar

                
                    
  • Start Page
  •                     
  • Page One
  •                     
  • Page Two
  •                     
  • Page Three
  •                 
                
    This is the body content.
                    
                        

    News and Events

                        

    Content on this region will be the same on every page.

                    
                
                    
                        This is the footer where we add a bunch of legalese and
                        talk in a really rapid voice so that no one can undertand
                        what we are saying in this run on sentence.
                    
                
    To convert this page for Tiles, you use the Tiles JSP tags. The
    tiles:insert
    tag serves
    as a placeholder for a component named in a Tiles definition. Example 14 3 (main 
    Layout.jsp) shows the results of converting the static page in Example 14 2. Though
    not required, it helps organize your application if you save your layout pages in a
    separate directory of your application. Conventionally, these common layout JSPs
    are stored in the web/layouts directory.
    Example 14 3. Laying out Tiles components in a reusable JSP
    <%@ taglib uri="http://struts.apache.org/tags bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags logic" prefix="logic" %>
    <%@ taglib uri="http://struts.apache.org/tags tiles" prefix="tiles" %>
    442 | Chapter 14: Tiles and Other Presentation Approaches
    This is the Title of the Book, eMatter Edition
    Copyright   2005 O'Reilly & Associates, Inc. All rights reserved.
    
    
    
    
    
    
    footer
    
    
    
    
    

     

     

     

     

     Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

    strutsweb hosting

     

    Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved