struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar_Sinha, Sumit" <>
Subject Tiles defination.How to pass dynamic value of an attribute ?
Date Tue, 17 Mar 2009 15:40:18 GMT
Hi Shrish,


I was finding some solution in Google.

My requirement is similar of your question posted on April 08 2003


Could you provide some idea/solution for this.


| []
| Sent: Tuesday, April 08, 2003 8:19 AM
| To:
| Subject: Tiles defination.How to pass dynamic value of an attribute ?
Hi All,
| I am a newbie to tiles . I have following requirement.
| I am using tiles definations with struts 1.0.And I need to pass the
| of one of attributes dynamically on each page using one of our custom
| tags.
| I have definaed a base defination for all my pages as follows.
| <!-- Main page layout used as a root for other pages defintion.  -->
|   <definition name="app.tile.simplepage" path="/WEB-
| INF/jsp/tiles/layouts/simple_page.jsp">
|       <put name="header"
| />
|       <put name="navigation"
| />
|       <put name="content"            value="/WEB-
| INF/jsp/tiles/empty_body.jsp"/>
|       <put name="footer"
| />
|       <put name="pageTitle"          value="?????" />This value i want
| be inserted dynamically.But how can I specify the dynamic value here
| the value comes as output of another tag...
|   </definition>
| and the simple body.jsp has folowing code snippet.
| <!-- The title for page body -->
| <div class="titleBox"><tiles:insert attribute="pageTitle"/></div>
| Here I need to pass the value of pageTitle as output of another
| <app:message name="formBean" property="contentTitle"/>)
| Any help will be appreciated..
| regards,
| Shirish




Mc Graw Hill Companies


The information contained in this message is intended only for the recipient, and may be a
confidential attorney-client communication or may otherwise be privileged and confidential
and protected from disclosure. If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this message to the intended recipient,
please be aware that any dissemination or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately notify us by replying
to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves
the right, subject to applicable local law, to monitor and review the content of any electronic
message or information sent to or from McGraw-Hill employee e-mail addresses without informing
the sender or recipient of the message.

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message