110-WL. Java Servlets with WebLogic
Version 10.3.0

Book cover

This practical, application-oriented course teaches Java Servlets technology and shows how to use it to develop simple to complex web applications on the Oracle® WebLogic platform. It is intended for experienced Java programmers who want to build web applications.

The course begins with an overview of server-side Java programming and web protocols. Then students learn the Java Servlets architecture, the request/response cycle, and servlet life cycle, and how to build interactive web applications that parse and/or generate HTML forms. Several prominent patterns for servlet application architecture are considered. Sessions are studied as a means to developing sophisticated client/server conversations over several HTML pages. Multi-tier applications are developed using servlets and JDBC for access to relational databases.

The course develops the important concept of the separation of programmatic and declarative development: use of configuration and context information in lieu of hard-coded values, resource locations, etc., to make the web application as portable and easy to administer as possible. The course introduces JavaBeans as a standard for business and data objects that can be shared among servlets and JSPs, and develops techniques for sharing such objects at session scope or by request forwarding. Finally, students learn how to implement filters to adapt existing servlets by pre- and post-processing the request and response.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. No association with or endorsement by Oracle Corporation is implied by the use of these terms in this document.


  • Java programming experience is required; Course 103, "Java Programming," is excellent preparation.
  • Exposure to HTML and web page design are beneficial but not necessary.

Learning Objectives

  • Understand and appreciate the role of Java Servlets in the overall Java 2 Enterprise Edition architecture, and as the best Java solution to HTTP application development
  • Use request and response objects provided to a servlet to read CGI parameters and to produce an HTML response
  • Develop interactive web applications using HTML forms and servlets
  • Manage complex conversations with HTTP clients using session attributes
  • Understand the role of JDBC in Java persistence code, and use JDBC for persistence in servlet applications
  • Preserve portability and ease of administration for a servlet application by parameterizing servlet code, using initialization parameters, properties files, and JNDI
  • Use JavaBeans classes to share complex business data between components
  • Implement filters to adapt existing servlets with new features, and to maximize the decomposition of logic between vertical business functions and horizontal facilities

Timeline: 2 days.

Server Support: WebLogic

  • This version of the course works with the WebLogic server. Our Java EE courses are available in variants that support various server products, including Tomcat, GlassFish, JBoss, and WebLogic. For more details, and to find a desired server-specific version of a course, see our server-support matrix.

IDE Support: WebLogic Workshop 10.3

  • In addition to the primary lab files, an optional overlay is available that adds support for WebLogic Workshop 10.3. Students can code, build, deploy, and test all exercises from within the IDE. See also our orientation to Using Capstone's Eclipse Overlays, and please be advised that this is an optional feature; it is not a separate version of the course, and the course itself does not contain explicit Eclipse-specific lab instructions.

Chapter 1. Web Applications

  • Server-Side Programming
  • Web Protocols and Web Applications
  • Role of Web Servers
  • Application Servers
  • WebLogic
  • Java Servlets
  • Using Tomcat Web server
  • Structure of a Java Servlet

Chapter 2. Servlets Architecture

  • Servlets Architecture
  • Servlet and HttpServlet
  • Request and Response
  • Reading Request Parameters
  • Producing an HTML Response
  • Redirecting the Web Server
  • Deployment Descriptors
  • Servlets Life Cycle
  • Relationship to the Container

Chapter 3. Interactive Web Applications

  • Building an HTML Interface
  • HTML Forms
  • Handling Form Input
  • Application Architecture
  • Single-Servlet Model
  • Multiple-Servlet Model
  • Routing Servlet Model
  • Template Parsers

Chapter 4. Session Management

  • Managing Client State
  • Sessions
  • Session Implementations
  • HttpSession
  • Session Attributes
  • Session Events
  • Invalidating Sessions

Chapter 5. Database Access

  • JDBC
  • JDBC Drivers
  • Using JDBC in a Servlet
  • Data Access Objects
  • Transactions
  • Connection Pooling

Chapter 6. Configuration and Context

  • The Need for Configuration
  • Initialization Parameters
  • Properties Files
  • JNDI and the Component Environment
  • JDBC Data Sources
  • The WebLogic Administration Console
  • Configuring Data Sources for WebLogic
  • Working with XML Data

Chapter 7. Filters

  • Servlet Filters
  • Uses for Filters
  • Building a Filter
  • Filter Configuration and Context
  • Filter Chains
  • Deploying Filters

Appendix A. Learning Resources

System Requirements

Hardware Requirements (Minimum) 1 gHz, 1 gB RAM, 3 gB disk space.
Hardware Requirements (Recommended) 2 gHz, 2 gB RAM, 5 gB disk space.
Operating System Tested on Windows XP Professional.
Network and Security Limited privileges required -- please see our standard security requirements.
Software Requirements Course software should be viable on all systems for which WebLogic 10.3 is available.