• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC i18n problem

 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to do internalization in my sample Spring MVC 2.5 web app

mywebapp-servlet.xml



messages.properties


messages_en.properties


messages_de.properties


welcome.jsp



i have placed all properties files within WEB-INF folder along with mywebapp-servlet.xml.

When i am calling welcome.jsp on IE browser,i am getting below mentioned error
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: No message found under code 'welcome.title' for locale 'en_US'.


Please help me to solve this error
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your resource bundles must be in your classpath. Put them under WEB-INF/classes.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the quick reply.
Yes. it worked
 
Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With this setup you can change the language in Browser's settings;

How can the language be changed on the web-page? EN DE ES...
What config modifications are required?


Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic