Struts2 tiles How to set attribute values in dynamically…
-
16-01-2021 - |
Question
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 ..
Solution
Use a Preparer
. Here's how.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow