I though the answer may be in the thread - link sent to you, previously:

In menu.jsp:

<tiles:useAttribute name="title" classname="java.lang.String" />
...
<bean:message key="<%=title%>" />

Does this not work?

See also other msgs on thread rgding using el. el is a better approach but
may not fit as well if you have not used el before.

H.

> -----Original Message-----
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2003 21:41
> To: [EMAIL PROTECTED]
> Subject: RE: tiles:getAsString within bean:message?
>
>
> OK, but I don't understand where the bean:message comes in now?
> How does the key get accessed through the ResourceBundle?
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
> >From: "Bailey, Shane C." <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> >Subject: RE: tiles:getAsString within bean:message?
> >Date: Tue, 3 Jun 2003 15:56:10 -0400
> >
> >
> >Try something like this:
> >
> >Template.jsp:
> >...
> >     <tiles:insert attribute='menu' >
> >        <!-- pass the title to the menu-->
> >        <tiles:put name="title" beanName="title" beanScope="request"/>
> >     </tiles:insert>
> >...
> >
> >in menu.jsp:
> ><bean:message key='<tiles:getAsString name="title" />' />
> >
> >
> >
> >
> >-----Original Message-----
> >From: Mick Knutson [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 03, 2003 2:42 PM
> >To: [EMAIL PROTECTED]
> >Subject: tiles:getAsString within bean:message?
> >
> >I am trying, unsuccesfully to create an ApplicationResource driven label
> >for
> >
> >the menu.jsp. Can anyone help get this to work:
> >
> ><bean:message key='<tiles:getAsString name="title" />' />
> >
> >
> >
> >---
> >Thanks...
> >Mick Knutson
> >---
> >
> >_________________________________________________________________
> >Add photos to your messages with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
> >
> >---------------------------------------------------------------------
> >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]
> >
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003


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

Reply via email to