Eclipse Web Tools Platform: Developing Java Web Applications by Naci Dai, Lawrence Mandel, Arthur Ryman
Purchase From
more options...
  • Barnes & Noble
  • Chapters/Indigo
  • Safari Books Online

Chapter 7 - The Presentation Tier

-Alan Cooper

The inmates are running the asylum.


Software architecture and design is largely a process of taking a complex system and dividing it into smaller, more manageable subsystems. One of the most important lines of division is that which separates the user interface of a system from its core. The core of a system is often referred to as its business logic and the user interface as its presentation logic. We discussed the architectural aspects of this division previously in Chapter 5. We discuss WTP support for presentation logic in this chapter and for business logic in the next, Chapter 8.

The division between presentation and business logic is especially important in Web applications for two reasons. First, the user interface is likely to change very frequently to improve its usability and to take advantage of new presentation technologies, but the core is likely to be stable. For example, in a banking system the core operations of transferring money between accounts or paying bills don't change much from year to year, but the bank is very likely to continually improve its ease of use. If there is a clear separation between the presentation logic and the business logic, then the presentation logic can be changed and tested much more quickly, cheaply, and reliably. Second, if the business logic is independent of the presentation logic, then it can be reused in other contexts and made available via other channels. For Web applications, this means that the same business logic can be accessed, for example, by Web browsers, voice response units, and Web services. The set of components that implements the presentation logic of a Web application is referred to as the presentation tier. This chapter describes the structure of the presentation tier for Java Web applications and the tools in WTP for developing it.


This is only a preview.
Read more sample content | Purchase Eclipse Web Tools Platform

Other Sections in This Chapter

  • Introduction
  • Interaction Design
  • Graphic Design
  • The Structure of the Presentation Tier
  • Iteration 1: Static Web Projects, HTML, and the Structured Source Editors
    • Static Web Projects
    • HTML
    • Structured Source Editors
    • Templates
    • Snippets
    • Summary of Iteration 1
  • Iteration 2: CSS
    • Summary of Iteration 2
  • Iteration 3: JavaScript
    • E-Mail Address Obfuscation
    • Data Entry Form Validation
    • Summary of Iteration 3
  • Iteration 4: XML and XSLT
    • XML
    • XSLT
    • Summary of Iteration 4
  • Iteration 5: DTD
    • Summary of Iteration 5
  • Iteration 6: Servers, Dynamic Web Projects, and Servlets
    • Servers
    • Dynamic Web Projects
    • Servlets
    • Summary of Iteration 6
  • Iteration 7: JSP
    • Summary of Iteration 7
  • Iteration 8: Monitoring HTTP Sessions
    • HTTP Sessions
    • The TCP/IP Monitor
    • Viewing HTTP Sessions with the TCP/IP Monitor
    • Modifying and Resending a Message
    • Summary of Iteration 8
  • Summary