struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Beaumont <>
Subject Nesting Tiles within each other problem
Date Fri, 22 Feb 2002 12:36:27 GMT
I have a page, which uses <tiles:insert> to insert another page that also
has a <tiles:insert>.  Is this possible?  I just keep getting a servlet
exception.  Below is a simplified example of what I'm doing.

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
<html:html locale="true">
<tiles:insert attribute="body"/>

<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
<tiles:insert attribute="anotherBody"/>

<p>Hello World</p>

>From tiles definition
    <definition name="/baseLayout" path="/base.jsp">
      <put name="body" value=""/>

    <definition name="/middleLayout" extends="/baseLayout">
      <put name="body" value="/middle.jsp"/>
      <put name="anotherBody" value=""/> 

    <definition name="/top" extends="/middleLayout">
      <put name="anotherBody" value="/top.jsp"/>

The error I get on trying to display the page 'top' is:
ServletException in:/middle.jsp] Error - Tag Insert : No value found for
attribute 'anotherBody'.' 
Ian Beaumont

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message