struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Josephy <>
Subject Problem rendering internationalized messages
Date Thu, 30 Jun 2005 09:14:53 GMT
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 user
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:

View raw message