Skip Ribbon Commands
Skip to main content

J-431 - Java Web Programming

Price:

Duration: 2 Days

Audience:

Level:

Technology:

Delivery Method:

Software Assurance Value:

Microsoft CPE:

Course Information

Course Description

​This two-day course teaches Java programmers how to build dynamic Web applications using JavaServer Pages, Servlets and JavaBeans. These technologies combine to form the presentation side of a J2EE Web-based application. Students will implement a Model-View-Controller (MVC) architecture for their Web applications.

Course Objectives

Course Audience

​Java programmers who need to develop Web applications using JSPs and Servlets.

Course Outline

Web Applications and MVC

  • Java Web Applications
  • Component Development
  • JSPs and Servlets
  • Model-View-Controller
  • Flow of Control
  • The WAR File
  • web.xml
  • Resource References
  • Handling Errors
  • Building the WAR
  • Deploying the WAR

JavaServer Pages - The View

  • Introduction to JSP
  • JSP Structure
  • Translation and Execution
  • Variables and Expressions
  • Implicit Objects
  • The page Directive
  • Error Handling
  • Include and Forward
  • Using JavaBeans

Java Servlets - The Controller

  • HTTP Requests
  • Servlet Lifecycle
  • Servlet Structure
  • HTTPServlet
  • HTTPServletResponse
  • HTTPServletRequest
  • Parameters
  • Request Data
  • RequestDispatcher
  • Session Scope

JavaBeans - The Model

  • What is a JavaBean?
  • Business Logic
  • Business Data
  • Properties
  • Bean Scope
  • Synchronization
  • Data Persistence and DAO
  • Using JavaBeans in Servlets
  • Using JavaBeans in JSPs
  • web.xml

JSP Expression Language

  • JSP Expression Language
  • Literals
  • Variables
  • Operators
  • Implicit Objects
  • Functions

JSTL

  • What is JSTL?
  • Tag Libraries
  • Core Tags - Conditionals
  • Core Tags - Iteration and Import
  • Catching Exceptions
  • XML Manipulation Tags
  • XPath and JSTL
  • Internationalization Tags
  • SQL Tags

Creating Tag Libraries

  • Custom Tags
  • Using Custom Tags
  • Defining Tags
  • Tag Library Descriptor Files
  • Tags with Attributes
  • Runtime vs. Static Attributes

Appendix A: Session Tracking

  • Understanding Cookies
  • The Cookie Class
  • Cookies in JSP
  • Cookie Properties
  • Session Tracking
  • The HttpSession Class
  • Sessions in JSP
  • Encoding URLs

Appendix B: Cascading Style Sheets

  • Introduction to Style Sheets
  • Inline Style Sheets
  • Document Level Style Sheets
  • External Style Sheets
  • Comments
  • Style Classes
  • Style Precedence

Course Prerequisites

​Before attending this course, students must have:

  • Completed J-510, Java Programming.
Course Schedule
This course is not scheduled yet.