on 08-09-2007 2:10 PM
Hi Friends,
I had developed one web dynpro application by using Internationalization - I18N of WebDynPro (Java) Application (Blog) but I got one error that is
<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
Actually i created two properties file
1. lang_en.properties
2. lang_ta.properties
I stored this two properties file in this package com.sap.example.language
and this my code in DOInit()
sessionLocale = WDClientUser.getCurrentUser().getLocale();
resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
}
catch (WDUMException e)
{
e.printStackTrace();
}
wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
How to solve this error?
Guide me.
Advance Thanks,
Balaji
Hi Friends,
I had developed one web dynpro application by using Internationalization - I18N of WebDynPro -Java Application (Blog) but I got one error that is
<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
Actually i created two properties file
1. lang_en.properties
2. lang_ta.properties
I stored this two properties file in this package com.sap.example.language
and this my code in DOInit()
sessionLocale = WDClientUser.getCurrentUser().getLocale();
resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
}
catch (WDUMException e)
{
e.printStackTrace();
}
wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
How to solve this error?
Guide me.
Advance Thanks,
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.