aspose file tools*
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
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: 19761
    
  20

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: 19761
    
  20

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