struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar_Sinha, Sumit" <sumit_kumar_si...@mcgraw-hill.com>
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.

 

http://mail-archives.apache.org/mod_mbox/struts-user/200304.mbox/%3C483B
0C156D0F3944BC52C6228044BD2C2753E7@s01b1f4h-bu.flur.zuerich.ubs.ch%3E

 

From: shirishchandra.sakhare@ubs.com
| [mailto:shirishchandra.sakhare@ubs.com]
| Sent: Tuesday, April 08, 2003 8:19 AM
| To: struts-user@jakarta.apache.org
| 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
value
| 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"
value="/WEB-INF/jsp/tiles/header.jsp"
| />
|       <put name="navigation"
value="/WEB-INF/jsp/tiles/sidebar.jsp"
| />
|       <put name="content"            value="/WEB-
| INF/jsp/tiles/empty_body.jsp"/>
|       <put name="footer"
value="/WEB-INF/jsp/tiles/footer.jsp"
| />
| 
|       <put name="pageTitle"          value="?????" />This value i want
to
| be inserted dynamically.But how can I specify the dynamic value here
as
| 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
tag(like
| <app:message name="formBean" property="contentTitle"/>)
| 
| 
| 
| Any help will be appreciated..
| 
| regards,
| Shirish

 

Regards

Sumit 

Mc Graw Hill Companies

NY, USA
 
--------------------------------------------------------

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

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