- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 352字
- 2021-07-23 16:54:52
Explaining the presentation tier
The Java EE platform is a distributed multitiered application model that has three widely used common tiers. These tiers are the presentation tier (or web tier), the business tier, and the integration tier (or EIS tier).
The presentation tier, also known as the web tier, contains the components that create a web application. This tier has many components that use the HTTP protocol, construct views and interfaces for users, and provide a web service. These components are called web components. There are two types of presentation tier:
- Presentation-oriented tier: This type of presentation tier contains the components to construct an interactive web page and dynamic content using HTML and XHTML. These components are JavaServer Faces technology, Java Servlet technology, and JavaServer Page technology, which allow us to construct an interactive web page.
- Server-oriented tier: This contains the components to construct an endpoint of a web service. These components are JAX-RS and JAX-WS.
The presentation-oriented tier is generally used on web applications using component-based specifications such as JavaServer Faces technology, or web applications using action-based Java Servlet technology as well as JavaServer Pages technology. The server-oriented tier is generally used on web applications that create a REST API or web service that is consumed by the client running on a mobile platform or browser. In the following diagram, we can see how the presentation tier works:

As shown in the preceding diagram, the Client sends a Request to the server; the Presentation Tier processes the request and sends it to the Business Tier; the Business Tier then sends a response to the Presentation Tier if the request is not asynchronous, and finally the Presentation Tier processes and sends the response to the Client.
Because the Presentation Tier is responsible for promoting HTTP communications and connections with external users, this tier fulfills many interactions and communications between web components. Numerous tasks need to be performed for this to work well. These tasks include validating the data sent by a client, formatting it, sending it to the correct business component or class, and filtering the data and requests.
- 每天5分鐘玩轉Kubernetes
- FreeRTOS實時內核應用指南
- Persistence in PHP with the Doctrine ORM
- Arch Linux Environment Setup How-to
- vSphere Virtual Machine Management
- 曝光:Linux企業運維實戰
- Ubuntu Linux操作系統
- Installing and Configuring Windows 10:70-698 Exam Guide
- RESS Essentials
- Windows 7中文版從入門到精通(修訂版)
- 計算機應用基礎(Windows 7+Office 2016)
- AWS SysOps Cookbook
- 鴻蒙操作系統設計原理與架構
- 應急指揮信息系統設計
- Implementing Domain-Specific Languages with Xtext and Xtend(Second Edition)