Hiding content from meta tags

Matt Raible <[email protected]> Fri, 26 Aug 2005 08:08:51 -0600
Newsgroups gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user
Message-ID <[email protected]>
I'm using the following setup with meta tags in my decorated pages:

<head>
    <title>About</title>
    <meta name="menu" content="About"/>
    <meta name="panels" content="giving,partners"/>
</head>

In my decorator, I'm using the Menu variable with a JSP Tag Library to
select which menu is active:

            <div id="hNav">
            	<c:set var="currentMenu"
scope="request"><decorator:getProperty property="meta.menu"/></c:set>
            	<c:import url="/WEB-INF/pages/menu.jsp">
            		<c:param name="template" value="/template/menu/tabs.html"/>
            	</c:import>
            </div>

I'm also using the content value from "meta.panels" to control which
panels show up on my page:


    <div class="menu">
        <c:set var="panels"><decorator:getProperty
property="meta.panels"/></c:set>
        <c:forEach var="panel" items="${panels}">
            <c:import url="/WEB-INF/pages/panels/${panel}.jsp"/>
        </c:forEach>                            
    </div>

This all works great, except that the <meta> tags, in their original
form, show up in the final decorated page.  There's no harm in leaving
them in, but I'd prefer to strip them out.

Is it possible to strip out the meta tags by adding some attribute to
the tag?  Or is there a better way to pass variables from my pages to
the decorator?

Thanks,

Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]