struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christ Jochen" <Jochen.Chr...@entory.com>
Subject [Struts Tiles] How to put a list of items to a nested tile?
Date Wed, 17 Oct 2007 17:22:53 GMT
Hi there,

 

in struts tiles:

 

Is there an easy method to put a list of items to a nested tile:

 

Here is my tiles-def.xml:

 

      <definition name="base.definition"
path="/common/layouts/layout_with_servicecolumn.jsp">

            <put name="footer" value="/common/tiles/footer.jsp" />

            ...

            <putList name="footeritems">

                  <item link="information.do" value="Back"
icon="back.gif" />

                  <item link="information.do" value="next"
icon="next.gif" />

            </putList>

      </definition>

 

 

In my layout_with_servicecolumn.jsp I want to insert my tile footer, but
how to "forward" my attribute footeritems to this tile?

 

<tiles:insert name="footer">

      <put...????????????????????????????? />

</tiles:insert>

 

 

 

 

in my footer.jsp I want to use this attribute by

 

 

<tiles:useAttribute name="footeritems"  />

 

 

thanks

 


Jochen


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