aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Where to start for adding i18n support to existing large J2EE based Web Application ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Where to start for adding i18n support to existing large J2EE based Web Application ?" Watch "Where to start for adding i18n support to existing large J2EE based Web Application ?" New topic
Author

Where to start for adding i18n support to existing large J2EE based Web Application ?

Akram Chotu
Ranch Hand

Joined: Apr 18, 2006
Posts: 43
I started on a new assignment where I need to work on a software maintanenace project consisting of a large enterprise java/j2ee based web application that is 10 years old. We need to introduce Internationalization(i18n) support to this web application.
This j2ee based web application uses technologies like java, oracle database, jsp, javascript, websphere v6.1 application server struts, web services, spring, xml, jms, ejb etc and this web application is mostly (oracle) database driven.

Now my question is, can you explain where do we start on this effort of adding i18n support to this large j2ee web application. Initially our focus is to support languages like Spanish, French and later extend to other languages.
Can you please suggest some good books, internet URL's etc. where I can look at for adding i18n support for these kind existing large j2ee based web application?
how to add i18n support to the existing large oracle based database ?

Appreciate your timely help.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
The Struts Framework has good support for Internationalization. If this application uses Struts, then this would be a good place to start. Any good book about Struts will cover this material. My favorite was Programming Jakarta Struts by Chuck Cavaness.

Good luck!
Akram Chotu
Ranch Hand

Joined: Apr 18, 2006
Posts: 43
Thank you James

appreciate more thoughts on this subject from fellow JavaRanchers ?
Brice Giesbrecht
Greenhorn

Joined: Mar 18, 2010
Posts: 4
Hi Akram. It really depends on what you have right now and what you need to do. (Where are you, and where are you going?)

Is your data already i18n in Oracle? Are you using n-types and a unicode (utf-8 or utf-16) character set? Do your i18n requirements include the actual data in Oracle or just the display mechanism?

Struts does have nice i18n support but it is not your only option. Most of the i18n in MVC frameworks have the same set of tasks, they just may vary a bit on how they do it. Resource bundles, tag libs, proper contentType encoding, etc. can be used outside of established MVCs but ymmv.

Here is a link that may help your creative/problem-solving juices start to flow: http://rizafar.blogspot.com/2007/07/internationalization-spring-upon-it.html

-Brice
Akram Chotu
Ranch Hand

Joined: Apr 18, 2006
Posts: 43
Thank you Brice.
Vlad Varnica
Ranch Hand

Joined: Dec 28, 2002
Posts: 40
You can reverse engineer your java code and look inside to understand how the application is supposed to work.
Which are central classes could be displayed in a class diagram and methods iterations in a sequence diagram etc.....

Try this 90 days Eclipse 3.5 SR2 evaluation edition of EclipseUML Omondo to reverse your project and not to pay during this reverse evaluation period.
Just unzip and it immediately works: http://www.omondo-internal-build.com/eclipse-java-galileo-SR2-win32_eclipseUML2.2_package.zip
How to reverse an existing project example: http://www.forum-omondo.com/documentation_eclipseuml_2008/reverse/reverse/reverse_engineering_example.html

You need to identify which class is in charge of translation and which methods are called and when. Be careful to respect existing work flows because if you insert a call at a wrong position then all the application could be unstable !! Check which JDK is supposed to work with your server because EclipseUML is only working with JDK 5 and futher so .....

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to start for adding i18n support to existing large J2EE based Web Application ?