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

Read More →

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

Read More →

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

Read More →

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

Read More →

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

Read More →

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

Read More →