• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

issuer with internationalization

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i'm trying to use internationalization from spring.
i've an index.jsp containing a frame createUser.jsp, it stayes always with the default language. when i try to use this link: user/creationUser?lang=fr
it refreshes the page but the language stay french

my web.xml


my creationUser-context.xml


my controller


thanks for your help
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would not use the DefaultAnnotationHandlerMapping if you are using the newest Spring I would just remove that all together. You no longer have to register the interceptors on the handler mappings anymore either you can make it applicable for all controllers.




Are your message properties files properly named?

I see you are doing


Why would you expect that to not be french?
 
fabian verbeek
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks

How can i make it applicable for all controllers? Where do i pu the lines, you gave?

It's really difficult to find a correct tutorial
 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like I said replace



with




You will need the make sure the mvc namespace is defined in your context xml.
 
fabian verbeek
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your helpful answer.

But how can i do to intercept it for every page? Do i have to put this line in my all context xml or are there a way to make a context for all the application?

thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic