struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Mistroni" <>
Subject RE: Problem rendering internationalized messages
Date Thu, 30 Jun 2005 09:43:15 GMT
	How about this?

<bean:define id="apple"><bean:message key=""/></bean:define>

<bean:message key="data.general" args0="<%=apple%>"/> 

-----Original Message-----
From: news [] On Behalf Of St├ęphane Josephy
Sent: 30 June 2005 10:15
Subject: Problem rendering internationalized messages

Hi everyone,

Just crashed onto this site, seems all nice and useful, let's see if you
can do
something for me (I'm a young Struts padawan :-) )

I'm working in a 3-legal-languages-country, so localization is a must.

I have declared in 3 locales, and some
message like
this in all 3 .properties files:

main.request=You have requested an {0}

where arg0 is to be replaced by another localized message (let's say the
can request an apple or an orange, and it has to be localized too); I
don't want
to make a fusioned message like: have requested an apple have requested an orange

because there are just too much combinations.

I'm trying this, inside logic tags: 
<bean:message key="main.request" locale="userLocale" arg0="<bean:message
key="" locale="userLocale"/>" />

but as you can guess, it doesn't work, so I'm trying to figure out a
clean way
to pass a localized argument to the bean:message tag.

Can you point me to the right way?  


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message