wood burning stoves 2.0*
The moose likes JSP and the fly likes internationalization help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "internationalization help!" Watch "internationalization help!" New topic

internationalization help!

Neeraj Macker
Ranch Hand

Joined: Nov 10, 2004
Posts: 77
its so simple but i get java.util.MissingResourceException...why?

my code:

import java.util.*;

Locale currentLocale;
ResourceBundle messages;

currentLocale = new Locale("de");
messages = ResourceBundle.getBundle("MessagesBundle",currentLocale);

the name of my file is MessagesBundle_de.properties

i have adapted the above code for a JSP.thats all. the properties file is in the same directory as is the JSP. why am i getting the exception?
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Put the properties file in classes directory.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Neeraj Macker
Ranch Hand

Joined: Nov 10, 2004
Posts: 77
Originally posted by David Ulicny:
Put the properties file in classes directory.

thanks a million,,this forum rocks...as if i call up my best friend and get help immediately.
I agree. Here's the link: http://aspose.com/file-tools
subject: internationalization help!
Similar Threads
getting Properties file in MessageBundle
ResourceBundles & its properties files
Help with I18N
using two properties files in struts