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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Application file format and uses" Watch "Application file format and uses" New topic

Application file format and uses

Kris Ten

Joined: Feb 28, 2007
Posts: 11
I'm working on upgrading to Struts 1.3.5 in an application that was already built on some version of 1.1. I'm relatively new to Struts, and I was wondering if anyone could tell me about the files (message resource bundles, right?). I understand that they contain error messages, both packaged with Struts and application-specific, developer-created. However, is there any special syntax other than the standard

# Comment goes here
element.keyName=Your favorite value {0}, as always

Also, why was I getting warning messages that said that and were not found. I know that en is for "English" and US is... well, obvious, but why did I need them? And do I have to copy the code from the basic file into each of those, or reference that file in some way?

Any insight would be greatly appreciated

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
No, there's nothing special about the file. It uses the standard rules for a Java ResourceBundle.

The warning message is nothing to be concerned about. All it's saying is that Struts first tried to find a language-specific version of the properties file, and since it didn't find one, it used the default, which is

If you want to find out more about how to make language-specific properties files in Struts, see this link.

Consultant, Sima Solutions
Kris Ten

Joined: Feb 28, 2007
Posts: 11
Thanks for your help on this and my LocalStrings question. I'm sure there will be more to come

I agree. Here's the link:
subject: Application file format and uses
jQuery in Action, 3rd edition