Localization on web server with different urls

M

mario

Hi guys,

I have a web application on websphere 4. It uses struts and hibernate.
The url for example is http://www.mydomain.net/context/index.do
where context is the context root.

I will use 2 different languages (it and en) and maybe in the next
future a couple more languages. I would like to have different urls for
each language but I don't want to duplicate any page (I would use some
resource bundle inside).

For example I would like to have /context/it/dosomething.do and
/context/en/dosomething.do, both pointing in the struts config to the
same action url that would redirect for italian to
/context/it/success.do and for english /context/en/success.do
automatically (without having to do some particoular coding each time I
want to create a page). I was thinking to some kind of servlet or
similar.
I looked through google but I didn't find any similar approach to solve
my problem. Do you have any idea?

Thanks

mario
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,265
Messages
2,571,071
Members
48,771
Latest member
ElysaD

Latest Threads

Top