You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Klaus Thiele <kt...@pi-ag.com> on 2001/06/21 14:11:59 UTC
Template Question
Hi,
is there a chance, to set the <title> via a <bean:message ... />
within a template?
<template:insert template='pageTemplate.jsp'>
<template:put name='title' content='how_to_do<bean:message...>'
direct='true'/>
[...]
</template:insert>
thanks a lot
klaus
--
Klaus Thiele - Personal & Informatik AG
mailto:kth@pi-ag.com
"Your mouse has moved.
Windows must be restarted for the change to take effect."
RE: Template Question
Posted by Mark Schenk <M....@dto.tudelft.nl>.
> Hi,
>
> is there a chance, to set the <title> via a <bean:message ... />
> within a template?
>
> <template:insert template='pageTemplate.jsp'>
> <template:put name='title' content='how_to_do<bean:message...>'
> direct='true'/>
> [...]
> </template:insert>
>
> thanks a lot
> klaus
Hi Klaus,
I had exactly this question once. Here's how to do it:
<template:insert template='pageTemplate.jsp'>
<template:put name='title'>
<bean:message...>
</template:put>
So basically, leave out the content par. and put the content in the
body of your put tag.
----------------------------------------------------------------------------
Mark Schenk | Ceci n'est pas une signature
Blackboard Project Manager |
Delft University of Technology |E-mail: M.M.A.Schenk@dto.tudelft.nl
Dept.: DTO |Phone: +31 152785448 (85448)
Room: LB00.680 |Fax: +31 152786359
----------------------------------------------------------------------------
-