>>> [EMAIL PROTECTED] 03/05/03 11:38AM >>>
> -----Original Message----- > From: Lyle Eckert [mailto:[EMAIL PROTECTED] > Not sure where you want to use this? Can you explain? > ******* > Ok, the long story short. I have an application that based > on what ID you pass to the first page, I need it to display > different things for all the sub pages. So I am checking > the properties files for things such as css pages, images, > ect because if it is not in their properties file, I need to > use the default. > > So the reason for the containsKey would be to check if the > property is in their file instead of either making sure every > last property is in the file. I could use a try{} and catch > it if the property is not there, but from what I have seen > the time consumed with throwing errors is too costly. > Because the properties class extends Hashtable it already has > containsKey() built in. I wouldn't mind changing it, > actually I am planning on writing a file that extended > Configuration that would do it for me, and just use that > instead, I just was curious if anyone else had run into this > and what they did. > You could set the username as the Variant in their Locale, then have things like: MyAction.propeties MyAction_EN_US_LYLE.properties So that the Lyle specific properties would override the defaults in MyAction.properties, but would fall back to the MyAction.properties if there was no setting for the key in the Lyle specific bundle. This should all be handled for you by the PropertyResourceBumdle, I think. If you try this, let us know how it works out. :-) Jason Jason, Thanks a lot for the help, I got it to work that way, and that should make it easier to do what I wanted to get done. I guess I hadn't even thought of using the locale for such a task. :) Lyle ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork