Csc 405 Mod 4 Slp Spring Framework

Read Complete Research Material

CSC 405 Mod 4 SLP Spring Framework

CSC 405 Mod 4 SLP Spring Framework


The Model-View-Controller (MVC) paradigm is a proven approach to the development of software programs that are controlled by user input. The MVC paradigm is used primarily for the development of extension used. It is based on Web applications from TYPO3 includes model that manages the actual data and combines it with the application logic. Spring is an application framework that dependency injection, aspect-oriented programming and several other things in a pile integrates. With Spring MVC can be used in combination with JavaScript, dynamic and RESTful web applications implemented in Java (, 2013).


Spring has become in recent years an important Java framework. Born out of a certain frustration with existing Java EE technologies (Java Enterprise Edition) and the desire to facilitate decoupling of software components it now offers many standardized modules that can be useful in many software projects. Spring Web is the specific component for developing web applications in Spring. Developing web applications is performed using the MVC pattern and can be used in conjunction with all the functionality provided by the framework.

For Web applications in addition to the core framework, especially the modules Spring MVC and Spring Web Flow is relevant. Spring MVC can be used in combination with JavaScript, dynamic and RESTful web applications implemented in Java. It provides a clear model-view-controller structure and can rely on established techniques such as JPA (Java Persistence API) and JSP (Java Server Pages). Some features of Spring Web are:

Provides a hierarchy of controllers for use in different scenarios

JSP tag library allows writing JSPs much more clear and simple.

Mapper requests very configurable.

It can be integrated with other web frameworks like Tapestry or Struts (Haines, 2009).

The Web application can be created with database connection based on Spring 3 and besides the usual CRUD methods (Create, Read, Update, Delete) auxiliary functions like a search with auto-completion and incorporates an error correction. Worth mentioning is that dependency injection since version 2.5 and Java code can be set via annotations. Essentially decouples the dependency injection classes of an application, it can be reused to test and easier. Generally, there are between the various modules little Spring dependencies, the developer can pick out the parts which are relevant for its application, and additionally receives nothing "forced". Thus Spring can easily be combined with other techniques in the Java environment.

MVC says that in an application at any time the data model must be separated from the presentation layer and the control flow. Translates to typical Java Web applications, this means that the (JSP) page are not allowed and the application logic data between surface (= View) and Database (= model) are transmitted via controller. The approach separates the clean layers, facilitating tests and avoids hard-to-maintain "spaghetti code". Spring leads to implementation, a central DispatcherServlet, which is set in the server configuration file. Among other applications, Spring Roo also works with the combination of spring MVC which can be used mainly for prototyping, but it requires a good understanding of Spring, in large ...