File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Spring MVC i18n problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC i18n problem" Watch "Spring MVC i18n problem" New topic

Spring MVC i18n problem

Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1341


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



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

Oracle certified Java 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Your resource bundles must be in your classpath. Put them under WEB-INF/classes.

[My Blog]
All roads lead to JavaRanch
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1341

thanks for the quick reply.
Yes. it worked
Imre Tokai
Ranch Hand

Joined: Jun 04, 2008
Posts: 130
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?

I agree. Here's the link:
subject: Spring MVC i18n problem
It's not a secret anymore!