struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bOOyah <boo...@nowhere.org>
Subject Q: Translating i18n keys in Struts?
Date Mon, 12 Apr 2004 11:48:03 GMT
Hi

I want to use 'html:select' and 'html:optionsCollection' to draw menus 
on my page.

I'm thinking of filling my collection of menu strings with i18n keys 
that correspond to string properties in my various resource bundles.  So

     menuList[0] = "menu.item.search"
     menuList[1] = "menu.item.about"
     ...
and so on.

Is there a neat Struts way of translating these keys to actual 
locale-specific strings on their way to the JSP, or even in the JSP 
itself?  Or do I have to write my own helper methods in my Action classes?

Thanks.
-- 
bOOyah


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message