you can add a position header to use.

Something like this:

<html:html>
<head>
        <title><s:message key="common.title"/></title>
        <tiles:insert attribute="header"/>
</head>
<body>
        <div id="contenedor">
                <tiles:insert attribute="text"/>
                <tiles:insert attribute="links"/>
                <tiles:insert attribute="content">
                        <tiles:put name="banner" beanName="banner"/>
                </tiles:insert>
                <tiles:insert attribute="footer"/>
        </div>
</body>
</html:html>

and in your tiles def:

    <definition name="smartemployer.default"
path="/WEB-INF/tiles/common2/default.jsp">
        <put name="header"      value="/WEB-INF/tiles/common2/header.jsp"/>
        <put name="text" value="/WEB-INF/tiles/common2/text.jsp"/>
        <put name="links" value="/WEB-INF/tiles/common2/links.jsp"/>
        <put name="content" value="/WEB-INF/tiles/common2/content.jsp"/>
        <put name="footer"      value="/WEB-INF/tiles/common2/footer.jsp"/>
        
        <put name="banner"      value="/WEB-INF/tiles/common2/banner.jsp"/>
    </definition>
    
<!--
=======================================================================
-->

    <definition name="smartcv.employer" extends="smartemployer.default">
        <put name="content" value="/WEB-INF/tiles/employer/employer2.jsp"/>
        <put name="header" value="/WEB-INF/tiles/employer/header.jsp"/>
    </definition>

El vie, 06-07-2007 a las 09:30 -0500, James Carr escribió:
> How can I add head elements (script, style, etc) to the head of a
> document created using tiles? I can add them to the body, but this is
> WRONG and goes against standards.
> 
> Thanks,
> James
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
____________________________________
Jorge Martin Cuervo
Analista Programador
 
Outsourcing Emarketplace
deFacto Powered by Standards
 
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384
____________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to