Folks,
I have a message in a jsp which require a dynamic attribute that I set on a bean from an action class. I want to use that bean within the tiles definition file. Is that possible? So for example, this is what I would do in my jsp to get the dynamic attribute: <% int requiredNum = ((com.my.bean.TestBean)session.getAttribute("testbean")).getRequiredcoun t(); %> <bean:message key="my.message" arg0="<%=requiredNum%>"/> My tile def looks like this: <!-- Layout --> <definition name="main.layout" path="/pages/layout/layout.jsp"> <put name="title" value=" "/> <put name="header" value="/pages/layout/header.jsp"/> <put name="body" value=""/> <put name="directions" value=""/> <put name="footer" value="/pages/layout/footer.jsp" /> </definition> I want to set "directions" dynamically from a bean which I stuff into the session. Is that possible, or am I totally off here? Thanks, Justin