File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes [solved] localization problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[solved] localization problem" Watch "[solved] localization problem" New topic

[solved] localization problem

Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
Found it, had a naming problem while i had appname in and that's why only that worked.

i created this property file: in the ClassNames's path.

It contains:
appname = Loto
tooasltip = Home Page

In the code if i write: <s:text name="appname" /> it works and displays Loto
If i write <s:text name="tooasltip " /> it displays "tooasltip" instead.
What am i doing wrong?

I mention i just change the property name and leave the code in place, and it behaves differently for different property names.
Also the order the properties are defined in their file is irrelevant, as it should, what goes wrong then?
Same weirdness with <s:text name="getText('appname')" /> -it works, <s:text name="getText('tooasltip )" /> doesn't.
Jayaraj Jaganathan
Ranch Hand

Joined: Jun 29, 2009
Posts: 70
amazing !!!

appname = Loto
tooasltip = Home Page

i hope issue in deployment. delete the property file test it.
then add the property file and test it
I agree. Here's the link:
subject: [solved] localization problem
It's not a secret anymore!