I'm trying to internationalize an application, but I can't pass a key to the <s:text/> dynamically. Instead of recovering the value from the properties file, the key is being displayed at the page to the user.
This is my example action:
This is my TestAction.properties file:
When i pass the key directly into the JSP the struts recover the correct value..
But when i try to get the key from the java action, instead of looking for it's value it just show's the key! I've tried the followings ways to recover the text:
but none of them works.. does anyone have an idea how to solve this?
That doesn't work on my case. I'll use the properties file to internationalize the application. When the user is from Us, for instance, the struts will get the value from the default file TestAction.properties. But when user is from other countries, like Brazil, struts will look for the value in the properties file 'TestAction_br.properties' for the value (or in the default file when it doesn't exists.)