This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Properties File in Jsp Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Properties File in Jsp Project" Watch "Properties File in Jsp Project" New topic
Author

Properties File in Jsp Project

Deepak Ar
Greenhorn

Joined: Oct 13, 2011
Posts: 3
Hi,

How can i create Multilingual Website. I Have created two Properties file for different language but how to assign the right property file at runtime...

Thanks.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

Why not use ResourceBundle, and use the client's locale (returned by request.getLocale()) to get the strings.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Deepak Ar
Greenhorn

Joined: Oct 13, 2011
Posts: 3
Can you guide me how to do it.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

http://download.oracle.com/javase/tutorial/i18n/resbundle/index.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Properties File in Jsp Project
 
Similar Threads
Design issue in jsp
how to .properties file
B&S suncertify.properties
Replace with Properties
How to hide/disable Hibernate log to console