Spring 3 how to handle multilanguage URL with same content

Viewed 2947

I want to fully internationalize my web page and have URLs translated to different languages. For example

all aforementioned pages should be handled by same controller and show same content (translated to desired language of course, this i know how to do - using message properties).

So my questions are:

  1. How to achieve this functionality using @RequestMapping annotation?
  2. Can I configure such aliases in properties or XML file and then "inject" them into controller? i.e.:

properties file:

alias.page=page:pagina

Controller

@RequestMapping("${alias.page}")
...

Or something like this.

Thanks for answers.

2 Answers
Related