Thanks for the help.  I'm much closer now.

I think I have a wrong path somewhere, but I'm not sure what to change.

I get this error: Error executing tag: Attribute 'header' not found.

This is the action I'm trying to render:
       <action name="Test1" class="example.Test1">
           <result type="tiles">homeTiles</result>
       </action>

The section from tiles.xml:
       <definition name="homeTiles" template="/layout/layout.jsp">
         <put-attribute name="title" value="Home"/>
         <put-attribute name="header" value="/test/header.jsp" />
<!--
         <put-attribute name="menu" value="/test/menu.jsp"/>
         <put-attribute name="body" value="/test/home.jsp"/>
         <put-attribute name="footer" value="/test/footer.jsp"/>
-->
       </definition>

one line excerpt from /layout/layout.jsp: <tiles:insertAttribute name="header" />

My eclipse project is laid out like:

WebContent
  layout
     layout.jsp
  test
     header.jsp
     menu.jsp, etc.
  WEB-INF
     tiles.xml
     web.xml


Torsten Römer wrote:

Some time ago when I started with Struts2+Tiles2 I made a simple "blank"
Struts2+Tiles2 webapp based on the struts2-blank-2.0.6 webapp. It
includes a Tiles2 configuration and a layout with some simple pages, and
hopefully all required JARs.

It is maybe not the perfect example but if you think it could be useful
you can download it here: http://luniks.net/struts2-tiles-blank.zip

Torsten

Rick Schumeyer wrote:


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

Reply via email to