struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Wiesner <step...@stephan-wiesner.de>
Subject Re: Tiles: attribute 'head' not found in context
Date Sat, 19 Jul 2003 11:56:32 GMT
Hi Axel,
that did not help. Now I just get "null" as the exception .-(


Axel Sachmann wrote:
> stephan@stephan-wiesner.de wrote:
> 
>> Hi list, I have a problem getting tiles definitions to work (using
> 
> Hi Stephan,
> 
>> 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"/>
> 
> i would say that you should use insert:definition in your page.
> something like this.
> -----------------------------------------
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> <tiles:insert definition="freelancer-new-profile" />
> -----------------------------------------
> Hope this will help you
> 
> Axel Sachmann
> 
>>
>>
>> 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: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message