Saturday, June 9, 2007

Struts Intro

Struts is the premier framework for building Java-based web applications. It's using Model-View-Controller design pattern, so that the developers concentrate on its structure.

History:

Initially CGI Scripts used for dynamic content. But CGI creates new process per request, but in the case servlets can be used multithreaded concept for avoids making new process per request. But later on JSP simplifies the work on dynamic pages.

Models:

Sun introduced JSP Technology at the same time it introduces two models i.e, Model 1 and Model 2

Model1 :

In Model 1, business logic, controller and data access are in the same unit. It can not be a complexity in smaller web applications. If we consider larger, it have some chaos.

Model 2:

Model 2 architecture known as MVC Architecture. In the MVC Architecture, a Central servlet known as the controller, receives all request for the application. The controller than process the request and work with the model to prepare any data needed by the View and forwards the data to a JSP.



No comments: