aspose file tools*
The moose likes Servlets and the fly likes 3 tier architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "3 tier architecture" Watch "3 tier architecture" New topic
Author

3 tier architecture

Thomas Andrewsen
Greenhorn

Joined: May 26, 2006
Posts: 7
Hai All,
In 3 tier architecture, where is the presentation layer, is it on the server side or client side. Beacuse in J2EE framework, we are using jsp/servlet to create the presentation which is viewed by the client browser, in which tier does the client's browser comes? If presentation(jsp/servlet) comes in server side, then what tier is in client side?


Thomas Andresen
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Thomas Andrewsen:
Hai All,
In 3 tier architecture, where is the presentation layer, is it on the server side or client side. Beacuse in J2EE framework, we are using jsp/servlet to create the presentation which is viewed by the client browser, in which tier does the client's browser comes? If presentation(jsp/servlet) comes in server side, then what tier is in client side?


In three tier architecture, browser is one of the tier which displays the presentation.
Second tier is application server and third tier is DB server.
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Hai All,
In 3 tier architecture, where is the presentation layer, is it on the server side or client side. Beacuse in J2EE framework, we are using jsp/servlet to create the presentation which is viewed by the client browser, in which tier does the client's browser comes? If presentation(jsp/servlet) comes in server side, then what tier is in client side?




Presentation comes on Client side.

Business Logic implementation comes in Application Tier. Here theres a sublayer called control-layer which interfaces between presentation and application..


A Moment's insight is sometimes worth a Life's experience.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You can expect lots of different answers for this one.

In a large J2EE app the entire servlet app is generally considered the presentation layer. Written correctly, you should also be able to use the business and persistance layers with a Swing (or other) presentation layer.

Well written servlet apps will also be broken up into the three MVC tiers (Model, View, Controller).

The lines between tiers are not always etched in stone.
In the majority of large business apps I've seen, the bulk of the business logic is written with stored procedures in the database. With AJAX taking off, we can expect these lines to get even fuzzier.

I just sat through a demo for a RAD product implemented almost entirely in VBScript executed in the browser. The webserver is nothing more than a conduit for passing AJAX calls back to the database where all the business logic is written stored procedures (2 tiers). The product was very slick.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Layered architectures can be nested or recursive, too. The browser might well have three tiers, too: A GUI layer, a DOM layer holding the data, and a communication / data layer.

These layers are not all that clearly defined across the world. We have one group who calls IHS Presentation and anything running Java is Application.

HERE are a few pages I put together re layering, with some links to neat stuff at Ratio, too.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
Don't get me started about those stupid light bulbs.
 
subject: 3 tier architecture