struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Chin" <>
Subject bean access in tile def?
Date Wed, 12 Jul 2006 03:15:42 GMT


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 =



<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" />




I want to set "directions" dynamically from a bean which I stuff into
the session.  Is that possible, or am I totally off here?




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