,ch14.9433  Page 460  Monday, February 14, 2005  12:55 PM
Example 14 16. Main decorator JSP page (continued)
                                
                            
                        
                    
                
            
            
                
                    
                
            
        
    
This decorator page references the  panel  decorator defined by the panelDecorator.jsp
page shown in Example 14 17.
Example 14 17. Simple panel decorator
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
    
    
        <%  inserts the body of whatever we are decorating here   %>
    
Example 14 18 shows the decorator (popupDecorator.jsp) used for pop up windows.
Example 14 18. Decorator for a pop up window
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
    
        <decorator:title default="{ Unknown Page   shouldn t see this,</font></pre></span>
<span name = "INTRA" style='top:855px; left:219px' class="ft3"><pre><font face='Arial'>                                           since pages should define title }" />
        
               rel="stylesheet" type="text/css">
        <%  pulls the header from the page we are decorating and inserts it here   %>
        
    
    
        
            
                              default="Unknown Title   shouldn t see this" />
            
            <%  inserts the body of whatever we are decorating here   %>
            
        
460 | 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