File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Internationalization Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Internationalization Problem" Watch "Internationalization Problem" New topic

Internationalization Problem

Jack Nicholson
Ranch Hand

Joined: Sep 07, 2002
Posts: 41
I am using Apache Tomcat 4.1 server.
I want to run internationalization code.
But it is saying that it don't found that File of Resource File.
May I know where to place this Resoource File in Tomcat?
Is there any configurations in XML File for locating configuration file on server?
I am currently using this sample code --
<%@ page language = "java" import = "java.util.*,*" %>
<% String language;
String country;

language = new String("fr");
country = new String("FR");

Locale currentLocale;
ResourceBundle messages;
currentLocale = new Locale(language, country);
messages = ResourceBundle.getBundle("MessagesBundle", currentLocale);
Is any body knowing this problem ?

Jack Nicholson
Jack Nicholson
Ranch Hand

Joined: Sep 07, 2002
Posts: 41
I got the solution for this.
When I put these methods in Bean & accessing it though JSP, it works fine.
I agree. Here's the link:
subject: Internationalization Problem
It's not a secret anymore!