This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

3 tier architecture

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 3851
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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..
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic