aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "internationalization help!" Watch "internationalization help!" New topic
Author

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);
System.out.println(messages.getString("greetings"));

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.
 
Consider Paul's rocket mass heater.
 
subject: internationalization help!