Review Topics for Exam 2

Class Page Links

Tomcat

Chapter 1 and Chapter 2

There is basic information that you need to know from these chapters in order to answer questions from subsequent chapters. The focus of the exam will be on Apache and Chapters 3 and 4, but there will be things you need to know from the first two chapters.

Chapter 3

  1. Introduction
  2. Java Bean
    1. Creating a Data Bean
    2. Using the Bean in a Web Application
  3. Application: Data Bean
    1. Controller: Data Bean
    2. Accessing the Bean in the JSP
    3. JSPs: Data Bean
  4. Application: Default Validation
    1. Java Bean: Default Validation
    2. Controller: Default Validation
  5. Member Variables in Servlets
    1. Threads
    2. The Problem with Member Variables
    3. Local versus Member Variables
  6. Reorganising the Controller
    1. Creating the Helper Base
    2. Creating the Controller Helper
    3. JSPs: Reorganised Controller
    4. Controller: Reorganised Controller
  7. Application: Reorganised Controller
  8. Model, View, Controller
  9. Summary
  10. Chapter Review

Chapter 4

  1. Introduction
  2. Logging in Web Applications
    1. Logging with Log4j
    2. Configuring Log4j
    3. Retrieving the Logger
  3. Eliminating Hidden Fields
    1. Retrieving Data from the Session
  4. Specifying the Location of the JSPs
    1. JSPs in the Directory where the Controller is Mapped
    2. JSPs in a Different Visible Directory
    3. JSPs in a Hidden Directory
    4. JSPs in the Controller's Directory
    5. Where should the JSPs be Located?
  5. Controller Logic
    1. Java Annotations
    2. Executing the Correct Button Method
  6. Filling a Bean
  7. Application: Enhanced Controller
    1. JPSs: Enhanced Controller
    2. ControllerHelper: Enhanced Controller
    3. Controller: Enhanced Controller
  8. Summary
  9. Chapter Review

Apache

For each of these directives, know the spelling, know what it does, know what its parameters are and what the parameters mean.

  1. ServerType
  2. ServerAdmin
  3. ServerRoot
  4. ServerName
  5. Listen
  6. ErrorLog
  7. PidFile
  8. Timeout
  9. KeepAlive
  10. KeepAliveTimeout
  11. MinSpareServers
  12. MaxSpareServers
  13. StartServers
  14. MaxClients
  15. MaxRequestsPerChild
  16. JkMount

Know the commands for starting the server, stopping the server and having the server re-read its conf files. Know how to find the process ID of the main daemon.

  1. httpd -d ~jbond007/cgs4825/serverRoot
  2. kill -HUP pid
  3. kill -TERM pid