In this example we will see different ways of using spring mvc checkbox tag. You can either use <form:checkbox path="<somevariableName>" /> or <form:checkboxes path="<somevariableName>" items="<someListName>" /> based on your requirements.
Spring MVC Controller extends another Controller
Controller’s in the Spring MVC are mainly used for processing the requests and sending a model back to the views. What happens when a Spring MVC controller extends another Controller. When a
10 Commonly Used Spring MVC Form tags
In one of the articles we saw the form handling example for spring mvc. Now we will discuss the 10 Commonly Used Spring MVC Form tags. To use the tags from this library, add the following directive
Spring MVC Form handling Example
While developing a web application we usually come across some requirements that deal with capturing of data from the user in a form and then processing the same data on the server and returning an
Spring MVC Flash Attributes Example
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