Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

3 tier architecture  RSS feed

 
Thomas Andrewsen
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?
 
Philip Plenckers
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In a typical j2ee MVC implementation the letters MVC stand for
M = Model (your (Enterprise) JavaBeans)
V = View (your jsp's)
C = Controller (your servlets)

So basically the client side, in this case the browser, doesn't play a role in the server side architecture and is not considered to be part of the MVC pattern.

You might try finding some books on it.

good luck.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The purpose of Servlets is to provide the opportunity to create dynamic content, So while they run on the server, what they produce is the presentation HTML, so the Browser and the HTML is the presentation layer. the Servlets business logic create the content that is needed. So you could also say that JSP is part of the presentation layer, because it combines HTML and some simple tags that a HTML guy who knows nothing about Java can write his Presentation layer.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!