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?
I am getting the localized value using java code only.
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.