This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 1000


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

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?

jQuery in Action, 2nd edition
subject: Spring MVC i18n problem
Similar Threads
Spring web flow: Not proceeding from first page to second page
WARN [org.springframework.web.servlet.PageNotFound]No mapping found for HTTP request, error-code404
spring form submission
Resource bundle properties file in Spring MVC
ResourceBundle [/WEB-INF/messageresource/welcome] not found for MessageSource