my dog learned polymorphism*
The moose likes Struts and the fly likes Trying to internationalize menu tabs using Struts-menu with struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Trying to internationalize menu tabs using Struts-menu with struts 2" Watch "Trying to internationalize menu tabs using Struts-menu with struts 2" New topic
Author

Trying to internationalize menu tabs using Struts-menu with struts 2

Tiago Farias
Greenhorn

Joined: Nov 06, 2008
Posts: 17
Hello!

I'm in big trouble =P. See, I've developed a menu using struts-menu 2.4.3 with Struts 2. It's working ok but I need to get the titles of the menus from a properties file (router-messages.properties). The whole app is internacionalized like this. But it just doesn't work with struts-menu. Here is my menu-config.xml file:

Hi, I've developed a menu using struts-menu 2.4.3 with Struts 2. It's working ok but I need to take the titles of the menus from a properties file (router-messages.properties). The whole app is internacionalized like this. But it just doesn't work with struts-menu. Here is my menu-config.xml file:



Please notice that I'm trying to use a key to my properties file in the item 'userMenu'. All other items work, but not this one. It shows literally 'application.header.users'.

Here's my jsp:




Does anybody know how to make struts-menu recognize that I'm using a key to a properties file and not a literal String??

Thanks!

Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

New to Struts2, just verify this related problem and see if that helps you


Have Fun with Java
little,little.. little by little makes a lot..
Tiago Farias
Greenhorn

Joined: Nov 06, 2008
Posts: 17
You're right Shankar! Thanks!
 
wood burning stoves
 
subject: Trying to internationalize menu tabs using Struts-menu with struts 2