Jump to content

JSP model 1 architecture

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by JLaTondre (talk | contribs) at 19:22, 31 December 2005 (disambiguation link repair (You can help!)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Model 1 architecture is very simple. A request is made to a JSP or servlet and then that JSP or servlet handles all responsibilities for the request, including processing the request, validating data, handling the business logic, and generating a response. Although conceptually simple, this architecture is not conducive to large-scale application development because, inevitably, a great deal of functionality is duplicated in each JSP. Also, the Model 1 architecture unnecessarily ties together the business logic and presentation logic of the application. Combining business logic with presentation logic makes it hard to introduce a new 'view' or access point in an application. For example, in addition to an HTML interface, you might want to include a Wireless Markup Language (WML) interface for wireless access. In this case, using Model 1 will unnecessarily require the duplication of the business logic with each instance of the presentation code.

See also