This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSP and the fly likes Internationlization using JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Internationlization using JSTL" Watch "Internationlization using JSTL" New topic

Internationlization using JSTL

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 415

Hi All,

I am using JSTL tags for internationalization on my JSP pages. Also some information which i am getting from servlet. I am getting the localized value using java code only. So is it the right way to do it. Is there any better way to do this?

Pawan Chopra
Keerthi Sagar

Joined: Apr 21, 2007
Posts: 28
pawan chopra wrote:Hi All,

I am getting the localized value using java code only.

Hi Pawan,
The scenario specified by you is not clear, how you are getting the localized values?

One way, and I think the better way is, maintaining the properties files for various languages and based on the required langauge/locale, loading the corresponding property file. You can use resource bundle here.

Y. Keerthi Sagar.
I agree. Here's the link:
subject: Internationlization using JSTL
It's not a secret anymore!