I think the nested tags might be an answer but not sure how to implement it. Must be something like this.

 

<tiles:put name="title" value="<nested:message key='menu.heading'/>" />

 

has anyone used the nested tag inside <tiles to retrieve a bean:message

 

 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Wiles
Sent: Thursday, January 12, 2006 9:19 AM
To: [email protected]
Subject: [CTJUG Forum] Re: internationalization and tiles

 

One of the weaknesses in struts I think is that you can’t generally nest one tag in another. This is what you’re trying to do here.

 

Your alternative is to use <%= … %> in place of the <bean:message … > if possible.

 

I don’t know what the java equivalent of bean:message is though.

 


From: Leon van der Merwe [mailto:[EMAIL PROTECTED]
Sent: 11 January 2006 04:42 PM
To: [email protected]
Subject: [CTJUG Forum] internationalization and tiles

 

Just a syntax issue….

 

This works fine:

 

<tiles:put name="heading" value="main menu page heading"/>

 

Now I want to get the text from my resources file for internationalization so I need to add

 

<bean:message key="link.labelPrinting" /> where the text in value is

 

therefore

 

<tiles:put name="heading" value="<bean:message key=’link.labelPrinting’ />"/> should work but syntax error!!!

 

Basically all I want to know is how to replace the string value with <bean:message key="link.labelPrinting" />

 

thanks

 

 

Leon van der Merwe

Programmer

Bytes Specialised Solutions

 


Tel : (+27) (21) 590-9801
Fax : (+27) (21) 590-9999

Email :
[EMAIL PROTECTED]
Web : www.btgroup.co.za
Press Office : www.itweb.co.za/office/bytes

A division of Bytes Technology Group SA (Pty) Ltd : Registration No: 2003/027603/07
A member of Bytes Technology Group Ltd; In association with KAGISO
P O Box 13287, N1 City, 7463; Akker Park, Neels Bothma Street, N1 City, 7463, Cape Town, South Africa

E-Mail Disclaimer: http://www.altron.co.za/email.asp or phone: (+27) (11) 645-3600

 

Reply via email to