You could use a Tiles controller to the "title" attribute from the
TilesContext and append the customer name.

HTH,

Matt

-----Original Message-----
From: PhilNoon [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:30 AM
To: [EMAIL PROTECTED]
Subject: tiles-defs.xml and dynamic page titles: how to do?


I am using tiles. I define the title of a web page in tiles-defs.xml as in
this snippet:

  <definition name="tiles.customer.title.parcels"
extends="tiles.default.layout">
    <put name="title"     value="Customer Consignment Note"/>
    <put name="content"   value="/pages/customerTitleParcels.jsp"/>
  </definition>

Then in my jsp, I have:

  <tiles:getAsString name="title"/>

Which outputs "Customer Consignment Note" as expected.

Now my client wants the title to read "Consignment Note for XXXX" where xxxx
is the customer's name.

Does anyone have an idea how to do this?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to