Sunday, March 6, 2011

Spring Framework...

Spring is a Java technology which is used to minimum decoupling objects.It will help you by Injecting beans externally,create objects.
Inside your dispatcher-Servlet.xml you can inject your bean.bean is known as a simple Java class.
ex:
this is injecting a object of AdminDaO.
For Spring framework developing we need to import special jar files externally.
commons-logging.jar -for logging Errors can be detected.logs file can be generated.
jstl.jar -java standard template library used for connect back end and front end.
junit-3.8.2.jar -used for testing purposes ,checks weather expected value and the given value is equals.
servlet-api.jar - used to manipulate request and response values manipulation.
spring.jar - this jar will supports their facilities to your code.
spring-jdbc.jar -supports to connect to database. basically configurations are their.
spring-webmvc.jar -supports to use MVC architecture of the framework.

MVC with Spring


Model -Hold the Business Logic of the programme.
View - Just JSP and HTML Pages.
Controller - controller calls the Model and view appropriately.

No comments:

Post a Comment