Hi there,
I have several working struts2 applications using i18n bu have an issue I
need to solve.
>From the user perspective, the struts2 request_locale parameter approach is
perfect but as locale information is stored in session, urls visited by a
user (or robot) are not locale specific.
Is there a recommended approach in struts2 to do something like:

http://www.mysite.com/index.action  (english)
http://www.mysite.com/es/index.action 
http://www.mysite.com/fr/index.action 

Both should return the same code, changing only the locale. The main english
site should always return content in english locale, even if user has
visited the /es/index.action and so has changed the locale to spanish.

I've been thinking about extending the i18n interceptor to make struts work
this way and not storing locale in session, but maybe I'm missing something.

Of course, I also have the problem of mapping the /LANGUAGE/*.action
I wouldn't like to add mapping for every language I plan to use.

(I've also been thinking about using www.mysite.com for english,
es.mysite.com, fr.mysite.com, ... and making the custom incerceptor force
locale based on subdomain... I don't really like this option anyway)

thanks for any comments/ideas/directions,

Ignacio
-- 
View this message in context: 
http://old.nabble.com/Locale-SEO-permanent-link-URLs-in-Struts2-tp27007987p27007987.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to