Posts Tagged ‘spring-3-mvc-series’

Spring 3 MVC Interceptor tutorial with example

Spring 3 MVC Interceptor tutorial with example
Spring MVC provides a powerful mechanism to intercept an http request. Similar to Servlet Filter concept, Spring MVC provides a way to define special classes called Interceptors that gets called before and after a request is served.Quick OverviewEach interceptor you define must implement org.springframework.web.servlet.HandlerInterceptor interface. There are three methods that need to be implemented.preHandle(..) is called before the actual handler is executed;The ...

Spring MVC Multiple File Upload example

Spring MVC Multiple File Upload example
In this simple tutorial we will see how to implement multiple file upload in a Spring 3 MVC based application.The requirement is simple. We have a form which displays file input component. User selects a file and upload it. Also its possible to add more file input components using Add button. Once the files are selected and uploaded, the file names are displayed on success ...

Spring MVC HashMap Form Integration example

Spring MVC HashMap Form Integration example
Spring MVC provides powerful way to manage form inputs. It also provides form validation functionality which is easy to integrate in any application. But other than the normal form bean mapping, recently I had a requirement to map dynamic values like key-value pairs in an HTML form and retrieve the same in Spring Controller. So basically HashMap came to rescue.Let us see how ...

Spring MVC + FreeMarker (FTL) Integration example

Spring MVC + FreeMarker (FTL) Integration example
Welcome to Freemarker Tutorial Series. In previous post we created Servlet based Hello World Freemarker Template example. We learned few APIs of freemarker and also how to integrate it with Servlet based application. Following are the list of tutorials from Freemarker tutorial series.Today we will create a Spring MVC based application that uses Freemarker FTL as view instead of JSP. This would give you ...

Spring 3 MVC – Autocomplete with JQuery & JSON example

Spring 3 MVC - Autocomplete with JQuery & JSON example
Let us implement Autocomplete feature in Spring MVC application using JQuery. Autocomplete is a feature you''ll see in almost all good web apps. It allows user to select proper values from a list of items. Adding this feature is recommended if the field has multiple ( > 20 to 25) values.Related: Autocomplete in Java / JSPOur requirement is simple. We will have ...

Introducing Cache support in Spring 3.1 M1

Introducing Cache support in Spring 3.1 M1
Spring 3.1 M1 is out with some very useful features. One of the coolest feature in the latest release is comprehensive Caching support!Spring Framework provides support for transparently adding caching into an existing Spring application. Similar to the transaction support, the caching abstraction allows consistent use of various caching solutions with minimal impact ...

Tutorial:Create Spring 3 MVC Hibernate 3 Example using Maven in Eclipse

Tutorial:Create Spring 3 MVC Hibernate 3 Example using Maven in Eclipse
Let us make a complete end-to-end application using Spring 3.0 MVC as front end technology and Hibernate as backend ORM technology. For this application we will also use Maven for build and dependency management and MySQL as database to persist the data.The application will be a simple Contact Manager app which will allow user to add new contacts. The list of contacts will ...

Spring 3 MVC: Themes in Spring-Tutorial with Example

Spring 3 MVC: Themes in Spring-Tutorial with Example
Welcome to Part 6 of Spring 3.0 MVC Series. In previous article we saw how to add Internationalization i18n and Localization L10n support to Spring 3.0 based web application. We used LocaleChangeInterceptor to intercept the change in locale and ReloadableResourceBundleMessageSource class to add message resources properties.In this part we will see how to add Themes in Spring MVC. We will create three different themes ...

Spring 3 MVC: Internationalization & Localization Tutorial with Example

Spring 3 MVC: Internationalization & Localization Tutorial with Example
Welcome to Part 5 for Spring 3.0 MVC Series. In previous article we saw how to configure Tiles framework with Spring 3 MVC application. We used org.springframework.web.servlet.view.tiles2.TilesConfigurer class in bean definition to define the tiles configuration file. This divided our HelloWorld Spring MVC application in sections such as header, footer etc.In this part we will discuss about Internationalization (I18N) and Localization (L10N) in Spring ...

Spring 3 MVC: Tiles Plugin Tutorial with Example in Eclipse

Spring 3 MVC: Tiles Plugin Tutorial with Example in Eclipse
Welcome to Part 4 for Spring 3.0 MVC Series. In previous article we saw how to create a form using Spring 3 MVC and display it in JSP. Also we learn about annotation @ModelAttribute.In this part we will discuss about Tiles Framework and its Integration with Spring 3.0 MVC. We will add Tiles support to our HelloWorld Spring application that we created in ...
Page 1 of 212