@RequestParam is used to bind the request parameters to Controllers method parameter. @RequestParam has 2 attributes that can be used required and defaultV
Spring MVC Path Variable Example
In Spring MVC you can use the @PathVariable on a method to bind it to the value of a URI template variable. Lets see various Spring MVC Path Variable Example. 1. Simple Path Va
Spring MVC Xml Response Example
In some previous post we saw how we can return Json objects from Spring MVC controllers. Now we will see examples of how we can use the @ResponseBody to return an XML represent
Spring MVC Json Request Example
In the previous post we have seen how we can get the JSON data from the Controllers using the @ResponseBody. Similarly posting JSON data/objects to the Controllers from views i
Spring MVC Json Response Example
JSON objects or Strings can be returned from Spring MVC controllers using some simple steps. Lets see some Spring MVC Json response examples in this post. What is JSON? JSON is a way of easily exch
Configure Multiple View Resolver in Spring MVC
In some previous posts we have seen various types of View Resolvers in Spring MVC 1. Spring MVC XML View Resolver 2. Spring MVC JSP View Resolver 3. Spring MVC ResourceBundle View Resolver We can a
Spring MVC ResourceBundle View Resolver
Spring MVC ResourceBundle View Resolver is used to resolve views based on the entries in to a specified properties file. The property file name is to be specified while configuring the [crayon-641e
Spring MVC JSP View Resolver Example
Spring MVC JSP View Resolver is a way to configure the jsp view names using the org.springframework.web.servlet.view.InternalResourceViewResolver. InternalResourceViewResolver has 2 properties that are very useful 1. prefix 2. s
Spring MVC XML View Resolver Example
Spring MVC XML View Resolver provides a way to configure the view URL’s in a single XML file. The location of the file is defined in the dispatcher servlet.xml. If we do not define any locati
Spring MVC Multiple File Upload Example
In the previous post we have seen sample code of Spring MVC File Upload Example. Now in this post we will see the code for Spring MVC multiple File upload. In this we will use a Model class to stor