Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tiago Farias
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
New to Struts2, just verify this related problem and see if that helps you
 
Tiago Farias
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right Shankar! Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic