Spring 3 Hello World Application
In this section, you will learn how to develop "Hello World" application in spring 3.
Before, developing the Spring 3 Hello World application you will needed to understand the spring MVC web application. Spring provides you MVC (Model, Views, Controllers) pattenrn.
1. Model:- Domain objects are processed by service layer (All business logics)and dao (Data Access Object) layer (Interating with database).
2. View:- This is a persentation layer. Which is used on client side. For examples: - JSP(Java Server Pages), JSTL(Java Standard Tag Library), FreeMaker, JavaScript, jQuery etc.
3. Controllers:- Controller word comes from control word. Controller controlls the various types of requests and responses. Contoller desides to which action or method to be executed and interacting with service and other layers. I returns a Model.
[Note: In the Spring MVC, "DispatcherServlet" play an importaint role. Eatch and every web request and response goes through the DispatchServlet. The DispatcherServlet dispatches every request to the suitable handlers and calls an appropriate Controller]
You will go to create a Spring MVC Hello World web application you neede the following:
1. Spring 3
2. JDK 1.6
3. Eclipse (Web supportatble)
4. Tomcat 6
Download Hello World Application