1

In tiles.xml set attribute values in static

<tiles-definitions>
<definition name="baseLayout" template="/site/layout.jsp" >
<put-attribute name="body" value="/index.jsp"/>
<put-attribute name="top" value="/site/footer.jsp"/>
<put-attribute name="bottom" value="/site/header.jsp"/>
</definition>
</tiles-definitions>

Can I give attribute values in dynamically.. .It is passable. Please give me some tips ..

RSK
  • 211
  • 1
  • 4
  • 17

1 Answers1

2

Use a Preparer. Here's how.

doctrey
  • 1,227
  • 1
  • 12
  • 25
  • tks doctrey. i successfully executed ViewPreparer. any other way execute pls let me know – RSK Aug 31 '11 at 04:43
  • You can use "expression" instead of "value" in the tiles.xml, take a look at http://symfony-world.blogspot.com/2013/02/dynamic-attribute-values-with-apache.html – ducin Feb 14 '13 at 22:16