File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition