D
David McDivitt
I have the following code I wanted to put in a struts plugin:
servlet.getResources().getMessage("CommonFilesPath")
Unfortunately getResources is deprecated. I need to get a value from the
default message bundle, but cannot get it to work. My code is:
MessageResources messages =
MessageResources.getMessageResources("resources.ApplicationResources.properties");
String commonPath = messages.getMessage("CommonFilesPath");
The string commonPath is always null. I am sure my problem is when I create
the messages object and the string passed is inappropriate. Help would be
appreciated. Thanks
servlet.getResources().getMessage("CommonFilesPath")
Unfortunately getResources is deprecated. I need to get a value from the
default message bundle, but cannot get it to work. My code is:
MessageResources messages =
MessageResources.getMessageResources("resources.ApplicationResources.properties");
String commonPath = messages.getMessage("CommonFilesPath");
The string commonPath is always null. I am sure my problem is when I create
the messages object and the string passed is inappropriate. Help would be
appreciated. Thanks