Learn your way! Get started

Java EE, Part 1: Servlets and JSP Fundamentals

with expert Susan Bryant


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack
  • Power Pack Plus

Release date Release date 10/15/2010
Level Level Intermediate
Runtime Runtime 9h 37m
Closed captioning Closed captioning N/A
Transcript Transcript N/A
eBooks / courseware eBooks / courseware Included
Hands-on labs Hands-on labs Included
Sample code Sample code Included
Exams Exams Included


Enterprise Solutions
Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

This course provides the ideal starting point for developers just getting into Java EE programming. This course covers programming topics specific to Java Servlets and JavaServer pages (JSP). In addition to covering the basics, this course will cover more advanced topics including JDBC, JSP Standard Tag Library, Model/View/Controller (MVC), and JavaBeans.

Prerequisites

This course is intended for Java programmers who build server-side web applications in leveraging Eclipse to streamline their development cycle. You should understand essential concepts of object-oriented programming and should be able to write simple Java programs with assistance.

Learning Paths

This course will help you prepare for the following certifications and exams:
Java Platform, EE 6 Web Component Developer
Java EE 5 Web Component Developer
Java EE 6 Enterprise Architect
1Z0-899: Java EE 6 Web Component Developer Certified Expert Exam
1Z0-866: Java Enterprise Architect Certified Master Essay Exam
1Z0-858: Java EE 5 Web Component Developer Certified Professional Exam

This course is part of the following LearnNowOnline SuccessPaths™:
Java Development

Meet the expert

Susan Bryant Susan Bryant is an experienced IT trainer and consultant with a broad array of skills. She has over 15 years experience in information systems with roles including systems consulting, project management, staff management, staff mentoring, and certified technical trainer. Susan has a strong technical knowledge of IBM WebSphere Application Server, WebSphere Portal Server, WebSphere Process Server, Lotus Domino, and web application development technologies including, Struts, JSF, EJBs and AJAX.


Course outline



Module 1

Overview (27:03)
  • Introduction (02:18)
  • Introduction (02:51)
  • Java Community Process (01:58)
  • Introduction to Java EE (04:17)
  • Why move to Java EE (04:03)
  • JAVA EE-New & Enhanced Features (03:48)
  • Java EE Software Packaging (02:10)
  • Java EE Technologies (04:58)
  • Summary (00:36)

Module 2

Eclipse Overview (51:48)
  • Introduction (01:17)
  • Eclipse Platform (01:26)
  • Eclipse Workspace (03:19)
  • Perspectives, Views & Editors (02:08)
  • DEMO: Features in Eclipse (13:37)
  • Perspectives, Views & Editors2 (00:29)
  • Basics of Views & Perspectives (01:14)
  • The Java Perspective (00:28)
  • The Debug Perspective (00:44)
  • Navigator View (01:42)
  • Package Explorer (01:24)
  • Outline View (01:42)
  • Problems View (02:52)
  • Eclipse Preferences (00:46)
  • Build and Validation (02:33)
  • Completion, Templates & Snippets (04:16)
  • Searching (02:39)
  • Configure Compiler Class Path (01:45)
  • JRE Switching (01:03)
  • Eclipse WTP (01:04)
  • Java EE Perspectives (00:41)
  • Project Explorer View (00:27)
  • Servers View (01:52)
  • JPA Tools (01:49)
  • Summary (00:22)
Environment Setup (01:49)
  • Introduction (00:55)
  • DEMO:Server-Test Enviornment (00:00)
  • Summary (00:54)

Module 3

Servlets (36:31)
  • Introduction (00:35)
  • History - CGI (01:42)
  • Server Extension APIs (00:51)
  • Java Servlet (01:50)
  • New in Servlet 2.5 (02:16)
  • Servlet Container (02:36)
  • Servlet Responsbilities (01:38)
  • Java EE and Servlet (01:29)
  • The Servlet Class (01:51)
  • The HttpServlet Class (03:04)
  • The Servlet API (00:53)
  • An Example - Hello World (01:11)
  • The Servlet Container (01:04)
  • DEMO: Create a Servlet (15:05)
  • Summary (00:20)
Life Cycle (39:30)
  • Introduction (00:37)
  • Life Cycle - Initialization (04:25)
  • Example Initialization (01:08)
  • Life Cycle - Processing (02:27)
  • Life Cycle - Destroy (02:18)
  • User Input (01:41)
  • Example - User Input (01:12)
  • Output to Client (02:19)
  • Servlet Error Handling (02:42)
  • Threading Issues (03:20)
  • DEMO:Init Parameters (09:51)
  • DEMO: doGet method (06:43)
  • Summary (00:40)

Module 4

Parameters and Attributes (50:02)
  • Introduction (00:42)
  • Request (01:31)
  • Request Parameters (02:09)
  • Request Attributes (03:27)
  • Request Headers (01:49)
  • Request Path (02:03)
  • Other Request Information (01:04)
  • Response (03:05)
  • Cookies (05:31)
  • Components of a Cookie (03:47)
  • Issuing Cookies (01:22)
  • Retrieving Cookies (01:24)
  • Deleting a Cookie (02:20)
  • DEMO: Review (19:00)
  • Summary (00:40)
Servlet Context and Config (15:20)
  • Introduction (00:42)
  • Servlet Context (03:23)
  • Servlet Context Attributes (02:49)
  • Resource (02:17)
  • DEMO: Servlet Context Object (05:48)
  • Summary (00:19)
Session Tracking (40:08)
  • Introduction (00:42)
  • Tracking Techniques (00:57)
  • Cookies (01:59)
  • Cookies - an Example (01:33)
  • HTML Hidden Fields (01:20)
  • Using HttpSession (04:06)
  • Session Invalidation (03:24)
  • Session Tracking (00:30)
  • Example: Session Tracking Code (00:57)
  • DEMO: Session Tracking Code (20:31)
  • HttpSession - URL Rewriting (03:31)
  • Summary (00:34)

Module 5

JSP Basics (30:34)
  • Introduction (00:36)
  • JavaServer Pages (01:14)
  • JavaServer Pages 2.1 (01:03)
  • A Simple Example - Hello.jsp (00:56)
  • JSP Benefits (02:03)
  • Dynamic Content Technologies (03:11)
  • How JSP Works (00:46)
  • JSP Invocation (01:47)
  • DEMO: JSP (18:31)
  • Summary (00:23)
JSP Page Directives (24:52)
  • Introduction (00:39)
  • JSP Scripting Elements (02:26)
  • The XML Syntax (02:57)
  • JSP Directive (03:10)
  • page Directive Attributes (02:44)
  • page Directive - an Example (00:38)
  • page Attribute - errorPage (00:45)
  • page Attribute - isErrorPage (00:51)
  • Using XML Syntax (00:48)
  • DEMO:pageDirectives&Attributes (09:29)
  • Summary (00:19)
JSP Page Includes (15:30)
  • Introduction (00:30)
  • Directives - include (01:33)
  • Include - an Example (01:10)
  • Include: compile vs request (02:03)
  • Request time inclusion (01:05)
  • DEMO: Include statements (08:40)
  • Summary (00:26)
Expressions and Scriplets (21:47)
  • Introduction (00:33)
  • JSP Declarations (01:14)
  • Declarations - an Example (00:59)
  • JSP Expressions (01:00)
  • JSP Expressions - an Example (00:59)
  • JSP Scriptlets (01:21)
  • JSP Scriptlets - an Example (02:22)
  • JSP Comments (02:27)
  • DEMO: JSP Elements (10:03)
  • Summary (00:44)
JSP Predefined Variables (15:14)
  • Introduction (00:37)
  • JSP Predefined Variables (02:33)
  • The request Object (01:37)
  • The response Object (00:41)
  • The out Object (01:01)
  • Out - an Example (00:59)
  • DEMO: Predefined Variables (06:43)
  • Summary (01:00)

Module 6

JavaBean Features (19:45)
  • Introduction (00:52)
  • What is JavaBean (01:45)
  • Structure of a JavaBean (01:12)
  • Life Cycle (02:26)
  • Properties (01:23)
  • Very Simple Bean (03:44)
  • DEMO: JavaBean Code (07:50)
  • Summary (00:29)
JavaBeans in JSP (30:11)
  • Introduction (00:46)
  • Using Java Beans in JSP (01:54)
  • The <jsp:useBean> tag (01:24)
  • Java Bean scope (01:34)
  • <jsp:useBean> in Action (01:05)
  • The <jsp:getProperty> tag (01:07)
  • The <jsp:setProperty> tag (01:07)
  • Mapping request parameters (01:16)
  • Another Example (00:46)
  • Mixing Scriptlets & Bean tags (01:10)
  • DEMO: JavaBeans (17:17)
  • Summary (00:38)

Module 7

MVC (54:14)
  • Introduction (01:07)
  • Key Issues (04:04)
  • MVC Model (01:45)
  • Model (02:56)
  • View (02:06)
  • Controller (02:33)
  • JavaBeans (02:03)
  • MVC Implementation (02:47)
  • Request Dispatching (01:44)
  • Forward vs. Include (02:00)
  • Forward Request to JSP (01:56)
  • HTTP Redirection (00:54)
  • Dispatch vs redirection (01:40)
  • Redirecting to a JSP (01:01)
  • SupplyResultInformation to JSP (01:58)
  • A Simple Example (02:03)
  • DisplayJavaBeanPropertiesinJSP (01:58)
  • DEMO: MVC Architecture (18:48)
  • Summary (00:41)

Module 8

Browse Derby in Eclipse (01:05:01)
  • Introduction (00:47)
  • DEMO:Derby in Eclipse (14:06)
  • What is JDBC (01:01)
  • JDBC Architecture (00:42)
  • JDBC: Basic Steps (01:23)
  • Loading a Driver (01:57)
  • DB2 UDB JDBC Drivers (02:58)
  • Oracle JDBC Drivers (01:54)
  • Create a Connection (02:14)
  • Connection (01:34)
  • Statement (00:57)
  • PreparedStatement (01:51)
  • PreparedStatement advantages (01:05)
  • ResultSet (01:53)
  • ResultSet... (02:26)
  • Ex:JDBC Servlet w/Transactions (02:56)
  • Close the Connection (02:03)
  • DEMO:DBC Connect (22:49)
  • Summary (00:16)
Pooling and Data Sources (38:14)
  • Introduction (00:54)
  • Need for Connection Pooling (02:04)
  • Connection Pooling in JDBC 2.0 (00:54)
  • Connection Pooling (00:27)
  • Basic Steps: Connection Pooling (00:44)
  • Accessing a DataSource (02:15)
  • Types of JBoss Data Sources (00:40)
  • Adding JDBC drivers (00:31)
  • Configure Data Source (01:27)
  • Common Data Source Properties (02:09)
  • Connection Pool Properties (02:25)
  • Get a Connection (01:09)
  • Release Connection (01:39)
  • Connection Pool Example (01:53)
  • Resource References (02:30)
  • DEMO: Connections (15:53)
  • Summary (00:33)