This is my first blog about learning the Spring MVC Framework 3.0.
New Spring MVC Features
1) Annotation Controller, They made all other form controller deprecated.
2) Annotation Validation
3) Dependency injection annotations like @Autowired
First basically ,we should know the basic concept of the Core Spring like Dependency Injection before going to Spring MVC Architecture.
There are sites to refer for learning the Spring
- http://www.vaannila.com/spring/spring-tutorial/spring-tutorial.html
- www.springbyexample.org
- http://www.javapassion.com/handsonlabs/springmvc/#Exercise_


- Dispatcher Servlet : Centralized Controller, where request will forward to Other Controller, You have to declare this servlet in the web.xml , Spring Container will take care about the initiation part.
- HandlerAdapter and Mapping : It takes about the url mapping(as, we do in the normal J2EE).
- Controller : Controller is nothing but servlet, which we load as per the Url mapping and return the Model(Bussiness Object) to the View(jsp).
- Model and View : Its nothing but a Map, where we put the Model (Object) and the Name of the View. For Example new ModelAndView("welcome","userDetail",userList), here welcome is the my view name(jsp name) and userList is my model object.
- View Resolver : One of the type of the View Resolver,InternalResourceViewResovler which is based upon the View Name, in above we have welcome, So it searchs for the welcome.jsp in your defining location. we can say,its a mapping for the view.
- View : for me its a Jsp.
I'll update you more in coming days..........
Bye for Now,
Rahul
Hi
ReplyDeleteGreat