• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on Internalization  RSS feed

 
jack martin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi EveryOne,


I am doing J2EE project using strut framework.

My project software requirement:

Jboss App Server.
Strut Framework
Oracle 10G.

Here strut could support multi language and i heard about oracle 10g,
It also support.I would like to know.


How do i implement on server(database) and key based(keyboard).
Please any one help me.

-- jack
SCJP,SCBCD
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jack_martin:
Hi EveryOne,


I am doing J2EE project using strut framework.

My project software requirement:

Jboss App Server.
Strut Framework
Oracle 10G.

Here strut could support multi language and i heard about oracle 10g,
It also support.I would like to know.

Struts Internationalization (i18n)

Originally posted by jack_martin:
How do i implement on server(database) and key based(keyboard).
Please any one help me.
-- jack
SCJP,SCBCD


I don't recommend this way.
 
Nikhil Goel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts supports internationlization by means of key value pairs . Struts Documentation can provide much insight but it is very simple and straightforward to do so .

Actually key values pairs are stored in property files(Resource Bundles) and based on locale these bundles are picked up . Struts gives that implementation .
You can also look into java.util.ResourceBundle that will give you fair enough idea.

Locales are like en_US , fr_FR means US english , French France etc .

One imp point though if your app needs to be a true i118n compliant you need to support UTF-8 charset . This charset can be set in META tag of JSP and on the server side it is taken care by App Servers .

On the DB side again while installing the DB and making an instance you need to specify the charset to UTF8 ....

This will ensure that all requests are coming in UTF-8 and all DB data is again in UTF-8 .

Hope it helps
-nikhil
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!