struts-user mailing list archives

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

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] = ""
     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?


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

View raw message