aspose file tools*
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
Author

Internationalization Problem

Jack Nicholson
Ranch Hand

Joined: Sep 07, 2002
Posts: 41
Hi
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.*,java.io.*" %>
<% 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);
out.println(messages.getString("greetings"));
out.println(messages.getString("inquiry"));
out.println(messages.getString("farewell"));
%>
Is any body knowing this problem ?


Jack Nicholson
Jack Nicholson
Ranch Hand

Joined: Sep 07, 2002
Posts: 41
Yes
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: http://aspose.com/file-tools
 
subject: Internationalization Problem