This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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

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 if i call up my best friend and get help immediately.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: internationalization help!
It's not a secret anymore!