Developing Servlets


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/Description
To outline the relationship between JavaServer Pages (JSPs) and servlets, to describe how to create servlets, and to explain how they fit into the web tier of the J2EE platform

Target Audience
Java developers who want to achieve an understanding of how web application components are developed for the Java 2 Enterprise Edition (J2EE) platform; business analysts, system architects, technical managers, and technology evaluators who are interested in gaining an overview of Java web-component technologies

Prerequisites
A good working knowledge of the Java language, specifically the Java 2 Standard Edition (J2SE) development kit APIs; familiarity with object-oriented analysis and design techniques, distributed component development concepts, and web development concepts would be useful

Expected Duration (hours)
4.7

Lesson Objectives

Developing Servlets

  • describe the role of Java web components and to differentiate between the responsibilities of servlets, JSPs, and EJBs.
  • describe the main classes of the servlet API and outline the life cycle of an HTTP servlet.
  • describe the steps required to create a basic HTTP servlet.
  • create a simple HTTP servlet to verify the logon to a web page.
  • configure the deployment descriptor of a servlet and describe the steps necessary to run it on a web server.
  • access Enterprise JavaBeans (EJBs) from within servlets.
  • use an Enterprise JavaBean (EJB) from within a servlet.
  • outline the issues involved in integrating servlets with JavaServer Pages (JSPs).
  • make JDBC API calls from a servlet to a database.
  • describe how to use servlets to track sessions using HttpSession objects, cookies, and URL rewrites.
  • describe how to handle thread safety issues in multithreaded servlets to prevent servlet conflicts.
  • describe how filters can be used to manipulate servlet requests and responses.
  • code a simple filter and set it up in the deployment descriptor.
  • describe how to implement listeners for web application life-cycle events.
  • Course Number:
    73468_eng