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
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