Struts2 tiles How to set attribute values in dynamically…

2.6k Views Asked by At

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 ..

1

There are 1 best solutions below

2
On BEST ANSWER

Use a Preparer. Here's how.