Spring MVC Archive
This tutorial explains the difference between Application Context vs Web Application Context in spring mvc. The ApplicationContext and WebApplicationContext both are almost same thing but there are some basic differences related to the web aware …
DispatcherServlet: The Heart of Spring Web MVC A “front controller” coordinates all request handling activities analogous to Struts ActionServlet / JSF FacesServlet Delegates to Web infrastructure beans Invokes user Web components Fully customizable interfaces for …
In this article, we are going discuss about one of the main annotation in Spring MVC @RequestMapping – used to mapping a web request to Spring Controller’s handler methods. All incoming requests are handled by …
Exception Handling in Spring MVC is about handling exceptions in the application by using spring framework. Spring offers we can customized our error page to more friendly error page to user. This example provides the …
Whenever we work with spring mvc then we assume that everything will always work in the our web application. But what if something goes wrong? What if, while handling a request, an exception is thrown? …
When we deploy a Spring MVC application into Tomcat and Servlet container not able to found this class org.springframework.web.servlet.DispatcherServlet then an Exception java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error comes which usually found in the spring-webmvc.jar file. The DispatcherServlet …
In this tutorial of Thymeleaf vs JSP, we will describe about two view layers for Spring MVC. One is JSP and another is Thymeleaf. Here we will compare the same page (a subscription form) created …