That requires a static titleKey in the tiles-def.xml, whereas I am dealing with a name
property from a bean that comes from a database.

Tim

> -----Original Message-----
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: 21 May 2004 17:48
> To: Struts Users Mailing List
> Subject: Re: Tiles and changing the title based on content
>
>
> <fmt:message><tiles:getAsString name="titleKey"/></fmt:message>
>
> ----- Original Message -----
> From: "Tim Penhey" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, May 21, 2004 4:59 PM
> Subject: Tiles and changing the title based on content
>
>
> > I was wondering if there is any way to change the title based on the
> content of a tiles
> > based page?
> >
> > I have a current JSP where the title is:
> > <title>${item.name}</title>
> >
> > Do people have any solutions to this?  At the moment my layout has the
> following:
> >
> > <c:set var="titleKey"><tiles:getAsString name="titleKey"/></c:set>
> > <title><bean:message key="${titleKey}"/></title>
> >
> > Preferably a simple solution, otherwise I'll have to move my dynamic
> titles to something
> > static.
> >
> > Tim
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
>





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

Reply via email to