Hi list, I have a problem getting tiles definitions to work (using
Struts 1.1).
It works fine, when I use <tiles:put name="head" value="Kopf.jsp" /> in
my JSP pages,
but not with the XML:

Here is the code in my tiles-defs.xml
    <definition name="mainLayout" path="Layout.jsp">
        <put name="head"  value="MeinKopf" />        
    </definition>
    
And here is Layout.jsp:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:useAttribute name="head"/>


And here is the JSP I use to call Layout.jsp:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert page="Layout.jsp" flush="true">
</tiles:insert>


The error I get is: 
[ServletException in:Layout.jsp] Error - tag useAttribute : attribute
'head' not found in context. Check tag syntax'

If I call Layout.jsp right away, I get:
ServletException: Error - tag useAttribute : no tiles context found

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

Reply via email to