I actually have package PKG in which I have resource bundle I18NSupport ( which has different languages .propperties files in it like I18NSupport_en_US.properties etc)
I built the code and then tried to deploy it on the JBOSS, but that is giving me error like.........
Caused by: java.util.MissingResourceException: Can't find bundle for base name I18NSupport, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
at com.martquest.util.I18NSupport.ResourceBundleName(I18NSupport.java:65)
at com.martquest.util.I18NSupport.message(I18NSupport.java:46)
at com.martquest.cache.IMqCacheManager.<clinit>(IMqCacheManager.java:37)
... 147 more
Thanks..
Hi i am working on struts framework.
I have used property file for the purpose of internationalization
I named it as ApplicationResources.properties
and put it in a directory not a package.its not java code at all.
directory i put is "com.yashdc.strutsbank.resources"
and then in struts-config file did mapping as
<message-resources parameter="com.yashdc.strutsbank.resources.ApplicationResources"/>
it worked fine for me
the structure of my .property file file is
#Labels
label.accessnumber=Access Number
label.pinnumber=Pin Number
label.accounts=Accounts
label.balance=Balance
label.totalassets=Total Assets
label.account=Account
label.balance=Available Balance
label.description=Description
label.amount=Amount
label.deposits=Deposits
label.withdrawls=Withdrawls
label.openingbalance=Opening Balance
#Links
link.customagreement=Custom Agreement
link.privacy=Privacy
link.security=Security
link.viewaccountdetail=View Account Detail
#Page-Titles
title.login=Struts Online Bank Login Page
title.accountinfo=Account Infomation Page
title.accountdetail=Account details Page
#Button labels
label.button.login=Login
#Error messages
global.error.invalidlogin=<li>Invalid AccessNumber and/or PinNumber</li>
global.error.login.requiredfield=<li>the {0} is required for Login</li>
#Images
image.logo=images/logo.gif
image.logo.alt=Struts Online Banking
image.logout=images/logout.gif
image.logout.alt=logout
image.strutspower=images/struts-power.gif
image.strutspower.alt=Powered By Struts
image.transfer=images/transfer.gif
image.transfer.alt=transfer Funds
image.clear=images/clear.gif
I hope this will help you
Best Luck
> > > Isn't that like the pickup line: "Are you looking
> for
> > > Mr. Right, or Mr. Right Now?"
> >
> > Mr. BigDaddy, I think you're trying to seduce me.
>
> We can go back to my place and order some Porno
> Pizza...
Hey! I'm not that kind of...Well, yeah, okay, I am.