LOGO For Immediate Assistance Call 855-211-9361

Open Enrollment

Intermediate Java (902)

Price: $1,050.00

Call for availability 855-211-9361

This course covers server-side development of Web applications using both servlets and JavaServer Pages (JSP). Due to the ubiquity of databases in such applications, the Java Database Connectivity (JDBC) API is covered in detail as well. Multiple examples and exercises build on student knowledge throughout the course, culminating in complex Web applications utilizing a database.

Course Overview

By the end of the class students will be able to:

  • Learn the details of the Java Servlet API
  • Understand how to create JSP applications
  • Build and deploy Web applications
  • Learn how to work with databases using JDBC
  • Combine servlets, JSP, and JDBC into complex applications

Prerequisites

900 PB Tech Capstone Series: Java Developer

Course Outline

  • Introduction to Server-Side Java

    • Why Use Java on the Server?
    • Java and the World Wide Web
    • Java Servlets: Dynamic Server Content
    • JavaServer Pages (JSP): Dynamic XML Templates
    • Java Database Connectivity (JDBC)
    • The J2EE Architecture
    • Servlets and JSPs in the J2EE Architecture
    • EJBs and JDBC in the J2EE Architecture
  • Introduction to HTTP Servlets

    • What is an HTTP Servlet?
    • How Servlets Work
    • Two Servlet Packages
    • The Generic Servlet API
    • The Servlet Development Process
    • Developing an HTTPServlet
    • The Deployment Descriptor, web.xml
    • The Java Servlet Lifecycle
    • doGet() and the HttpServletRequest and HttpServletResponse Objects
    • Outputting an HTML Response
    • Servlet Initialization
    • Using Initialization Parameters
    • The Servlet Thread Model
    • The Servlet Thread Model
    • Logging With Servlets
  • Servlet Request and Response Objects

    • Retrieving Client Information
    • Redirecting Client Requests
    • Retrieving Environment Variables
  • Processing Form Input With Servlets

    • The getParameter() Method
    • Handling GET and POST Submissions via the Same Servlet
    • Processing Form Input with Multiple Parameters
  • Servlet Forwards And Includes

    • The RequestDispatcher Interface
    • Traditional HTML Includes
    • Servlet Includes
  • Using Cookies with Servlets

    • Setting a Cookie
    • Retrieving a Cookie Value
    • Clearing Cookies
  • Session Variables

    • Getting a Session Object
    • Setting a Session Value
    • Getting a Session Value
    • The Session ID
    • Clearing the Session
  • Introduction to JavaServer Pages

    • Overview of JSP
    • A JSP Web Deployment Descriptor
    • JSP Directives
    • JSP Expressions
    • JSP Declarations
    • JSP Scriptlets
    • Implicit Objects
    • Session Management with JSP
  • Form Processing with JavaServer Pages

    • The Request Object
    • Form Processing in One Page
    • Handling Multiple Form Parameters
  • JSP Forwards and Includes

    • The <jsp:forward> Action
    • Conditional Forwarding
    • A Preprocessed Include
    • Dynamic Includes Using <jsp:include>
  • Exception Handling With JavaServer Pages

    • Creating an Error Page
    • Linking to an Error Page
    • Handling Standard HTTP Errors
  • Introducing JavaBeans

    • What are JavaBeans?
    • What Distinguishes JavaBeans from Java Classes?
    • Examining our First Bean
    • Serializable and Star Trek
    • Motivation
    • No Argument Constructor
    • Getting and Setting Properties
    • Boolean Properties
    • The <jsp:useBean> Tag
    • Working with Session Scope
    • The <jsp:getProperty> Action
    • The <jsp:setProperty> Action
    • Matching Form Parameters to Properties
    • Matching All the Parameters to Properties
    • Initializing Components Using <jsp:setProperty>
  • Introducing JDBC

    • About the Database for this Class
    • The Seven Steps Carried Out by Database-Driven Applications
    • Importing the java.sql Package and Setting the Error Page
    • Loading the Database Driver
    • Connecting to the Database
    • Assemble the SQL Statement
    • Execute the SQL Statement
    • Close the Connection
    • Exceptions using JDBC
    • Mapping SQL Data Types to Java
    • Keeping the Connection Open
    • The _jspInit() Method
  • Intermediate JDBC

    • Inserting Data into the Database
    • Removing Data from a Table
    • Updating a Record
    • Working with a PreparedStatement
    • The PreparedStatement Mutator Methods
    • Working with a CallableStatement
    • The Types Class and Setting Parameters
    • Executing a CallableStatement
    • ResultSet MetaData
    • Database MetaData
  • JDBC Driven JavaBeans Components

    • The transient Keyword
  • Dynamic Result Sets

    • Why Dynamic Result Sets?
    • Defining the Result Set Type
    • Updating a Record via the ResultSet
    • Moving Around the ResultSet
    • Adding New Data to a ResultSet
    • Deleting Data via a ResultSet
    • Seeing Updated Data
  • Batch Updates

    • Batching 101
    • Adding to the Batch
    • Executing the Batch
  • Transactions with JDBC

    • Why Have Transactions?
    • Isolation Levels
    • Transactional JDBC Methods
    • What About Rolling Back?
  • The Java Standard Tag Library

    • The JSTL Tag Libraries
    • The JSTL Expression Language (EL)
    • Analysis of the Expression Language
    • Dot Operator usage to access map and property values
    • The [] operator
    • The Deployment Descriptor
    • The taglib Declaration
    • The Core Tag Library
    • The EL Tags
    • The <c:set> Tag
    • The <c:forEach> Tag
    • The <c:out> Tag
    • Conditional Tags
    • Including Content
    • Redirecting Requests
    • SQL Tags
    • Importing the SQL Tag Library
    • Defining the Data Source
    • Executing the Query
    • The Result Object
    • Parameterized Queries
    • The Implicit Objects
  • Appendix A: Setup for Examples and Exercises

    • Structure of Projects
    • Setup of Ant and Web Container
    • Class Development Cycle
  • Appendix B: Working with J2EE Containers

    • Write Once Run Anywhere Enterprise Applications
    • Choosing A J2EE Application Server
    • Migrating to a New Container
  • Appendix C: Using BEA WebLogic for Servlet and JSP Development

    • What is BEA WebLogic?
    • Where can I get WebLogic?
    • Which WebLogic Product do I use?
    • Installing WebLogic
    • Installing WebLogic Using JRockit
    • Exploring the Installation
    • Configuring WebLogic
    • WebLogic Server Administration Console
    • Controlling WebLogic
    • Starting WebLogic Using startWeblogic.cmd
    • Stopping WebLogic using stopWebLogic.cmd
    • Server Logging
    • Installing 3rd Party Libraries (JARs)
    • Deploying Applications
    • Automated Deployment
    • Console Deployment
    • Application Redployment
    • Application Undeployment
    • Console Based Undeployment
    • Command Line Based Undeployment