Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internationlization using JSTL

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Keerthi Sagar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,
Y. Keerthi Sagar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic