MVC is a design pattern which provides solution to layer an application by seperating Business(Model),Presentation(View) and Control Flow(Controller). The Model contains the business logic and the Controller is responsible for the redirection and the interaction between View component and Model. The View component contains the presentation part of the application.
In this following example we will learn how to write a simple web based application which makes use of HTML forms using Spring Web MVC framework. Create a Dynamic Web Application in Eclipse to develop a Dynamic Form based Web Application using Spring Web Framework. In this example the user fills in a web form and click Submit button. The server receives the request of the user, processes the input and finally returns a response back to the user. Lets go ahead and see how the Spring MVC framework supports form handling.
In this example we will show you how to write a simple web based Hello World application using Spring MVC framework. Create a Dynamic Web Application in Eclipse IDE for our Spring Web Application.