A very common scenario in a MVC application is to Submit a form and show a success page along with some information about the submitted data. Now when we submit the form and show the success page,
Spring MVC Model Attributes
Spring MVC Model Attributes are used to bind data either as method parameter or its return value. It is also very commonly used to bind/show data on forms. @ModelAttribute is use
Spring MVC Session Attributes
Session handling has become a integral part of web applications. Spring MVC is no exception in Session Handling. Spring MVC provides very easy ways in which we can handle the Session Attributes. We
Spring MVC Attributes
While developing a web application we have to take care of the scopes (session / request) of objects that are used to manipulate data. Spring MVC provides many ways to handle such data in various s
Spring MVC Cookie Handling
Spring MVC Cookies are small text files that are stored on client computers browser directory. Cookies can be used for any of the following 1. Remember the information about the user who has visite
Spring MVC Exception Handling – ControllerAdvice
Spring MVC Spring MVC provides several ways of handling exceptions that occurs during the execution of your application. Today we will discuss the use of ControllerAdvice for handling exceptions. C
Spring MVC Interceptor example
In this article we will create a simple Spring MVC Interceptor example. Spring MVC Interceptor As the name suggests, Spring MVC Interceptors are java classes that are used to intercept any requests
Create Login page using Spring MVC
In this article we will learn how to create a login page using Spring MVC. The user enters the login id and password and we will have a check on the controller to see if the credentials are valid.
Creating a Spring MVC Simple Example
In this article we will learn how to create a spring mvc simple example. Please install / setup the below softwares to get started 1. JDK 1.7 2. Maven 3. Tomcat I will be using eclipse IDE. 1. Crea
Html5 Custom Attributes
Many a times we need to store/require additional data from HTML elements for parsing or performing some operations. This can be achieved using a class or rel attributes that traditional HTML provid