struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paweł Wielgus" <poulw...@gmail.com>
Subject Re: [S2] Dynamic Text Tag Attributes
Date Thu, 11 Sep 2008 14:54:00 GMT
Hi,
or try this:
<s:property value="getText(title)"/>

Best greetings,
Paweł Wielgus.

2008/9/11 Roger <roger.varley@googlemail.com>:
> I've got some .jsp pages that are identical apart from the page title that I'm
> currently setting with "<title><s:text name="label.page1.title"/></title>"
> and "<title><s:text name="label.page2.title"/></title>" etc etc.
>
> I would like to set the name attribute dynamically from the supporting action,
> but "name="${title}"/> obviously doesn't work as the attribute name won't
> take an expression.
>
> Is there a work around?
>
> Regards
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Mime
View raw message