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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1080


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 Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

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: 1080

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
Similar Threads
Spring web flow: Not proceeding from first page to second page
Resource bundle properties file in Spring MVC
ResourceBundle [/WEB-INF/messageresource/welcome] not found for MessageSource
spring form submission
WARN [org.springframework.web.servlet.PageNotFound]No mapping found for HTTP request, error-code404