Developing Spring MVC application – Annotation based Controller and JPA

This application is based on the sample Spring MVC application described in the “Developing a Spring Framework MVC application step-by-step” document in the Spring Framework 2.5 download. The differences are

  • Annotation based Controller class
  • JPA based persistence using Hibernate
  • Maven based project configuration
  • Test classes are upgraded to use JUnit 4 annotation



Continue reading “Developing Spring MVC application – Annotation based Controller and JPA”

Developing Spring MVC application – Annotation based Controller and JPA

Spring MVC – Resolving Locale and Externalizing Locale-Sensitive Text Messages

A sample Spring MVC application to show how to

  • Retrieve the current Locale Resolver
  • Retrieve the current Locale
  • Set a new Locale
  • Display different version of the same message for different locales

Continue reading “Spring MVC – Resolving Locale and Externalizing Locale-Sensitive Text Messages”

Spring MVC – Resolving Locale and Externalizing Locale-Sensitive Text Messages