chainreaction
asked on
multi language - java web application How
Hi, we have manage to complete the system and it's up and running. The future expansion of the system will be to make it localise or multilinguae (multi langauge)
I am wondering how should i start it. I understand Java do support multi language. Can anyone share me their experience on this areas?
tq
I am wondering how should i start it. I understand Java do support multi language. Can anyone share me their experience on this areas?
tq
ASKER
anyway not to use JSTL? cause i am only using JSP and servlet and object...
Yeah, you can load a ResourceBundle directly, and call getString on it:
http://www.cisco-cert.com/java/Oreilly.Java.Servlet.And.JSP.Cookbook/source/0596005725_jsvltjspckbk-chp-24-sect-5.html
Shows you an example (in a servlet)
Tim
http://www.cisco-cert.com/java/Oreilly.Java.Servlet.And.JSP.Cookbook/source/0596005725_jsvltjspckbk-chp-24-sect-5.html
Shows you an example (in a servlet)
Tim
However,
Please do consider Tim's suggestion to use JSTL as you will feel it on how easy it is in the future to use JSTL to support internationalization
David
Please do consider Tim's suggestion to use JSTL as you will feel it on how easy it is in the future to use JSTL to support internationalization
David
Did you use any particular framework for your app? If so, it may have some i18n stuff built in - for example, JSF makes it quite easy.
>> i am only using JSP and servlet and object...
Tim
Tim
One other thing - make sure your pages are all tagged as charset=UTF-8. This means that the data must all be in Unicode, so it covers all characters. If you don't do this, you'll have to change the pages for each locale.
ASKER
hi, i come across this i18N provided by Jakarta.
But i am desparetely looking for some example provided by them. Tim, do you have any ideas about this tag lib provided by them?
http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html
i can't find the sample program mentioned in there.
http://jakarta.apache.org/taglibs/doc/i18n-doc/index.html#examples
But i am desparetely looking for some example provided by them. Tim, do you have any ideas about this tag lib provided by them?
http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html
i can't find the sample program mentioned in there.
http://jakarta.apache.org/taglibs/doc/i18n-doc/index.html#examples
You'd be better off using the JSTL tags above, as they are the new standard (rather than using an old technology to do this)
Tim
Tim
Tex Texin, an old friend of mine, has a web site with a bunch of stuff on this subject - have a look at http://www.i18nguy.com/
ASKER
Tim, i understand your point. But with the design that i am using now, can i incooperate the JSTL in? I means can JSP and Servelt work with JSTL??
Can refer me more on JSTL fundamental and knowledge about it? I am zero knowledge for that.. JSTL..
thanks.
Can refer me more on JSTL fundamental and knowledge about it? I am zero knowledge for that.. JSTL..
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tim, thanks for your information.
appreciate that.
appreciate that.
Takes you through the JSTL fmt tags for localisation of JSP using Message Bundles
Tim