Wednesday, June 18, 2008

Spring Framework




Previous



Spring’s MVC Architecture:

Spring’s MVC framework is designed based on Dispatcher Servlet which dispatches requests to respective request-handlers better known as controllers. Spring can bind any object as a command object which will be available directly in the controller class.

To do any validation of the form objects, you need a validation class which is provided by this framework.

After validation, if you want to send some data to the JSP that can be done via referenceData method. The controller class returns a view name (the JSP name) and a model Map.

The model contains all the bean names and corresponding objects you need to send to the view. View names and it’s location is resolved via view Resolver bean provided in the XML mapping.


Next

0 comments: