on 05-14-2007 7:14 AM
Hi All
I have placed the resource bundle/ .properties file on server.
I need to access those resource bundles.
These resource bundle are NOT placed in the same project but are placed on server.
How can i access the key- value from the resource bundles ?
Please help
Regards
Sonal Mangla
Hi Sonal,
two solutions exist:
<b>
Solution A (Simple): Deploy Resource Bundles within Web Dynpro DCs</b>
You can deploy the resource bundles within Web Dynpro DCs comprising no Web Dynpro entities. This could be named Web Dynpro Resource Bundle DC. Then it is quite simple to load the resource bundle from another Web Dynpro DC by invoking the WDResourceHandler, IWDResourceHandler API.
<b>Soution B (Advanced): Deploy Resource Bundles within non WD DCs</b>
To load such "external" resource bundles you must first define a sharing reference to the DC comprising the resource bundles within your Web Dynpro DC.
Then you can again invoke the WDResourceHandler service passing a reference to the Web Dynpro class loader:
WDResourceHandler.createResourceHandlerForCurrentSession().loadResourceBundle("mybundle",wdComponentAPI.getClass().getClassLoader());
Regards, Bertram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.