0345 4506120

Developing Java Web Applications

In this training course, you acquire the experience needed to implement high-performing, scalable, and secure transactional web-based applications, as well as gain an in-depth understanding of how to integrate JPA and EJB with modern web technologies, and how Java Enterprise Edition (Java EE) offers a simple and comprehensive approach to building state-of-the-art enterprise applications.

Learning Objectives

You Will Learn How To

  • Build robust, data-driven web applications by integrating key components of Java EE
  • Create dynamic, session-managed, data-driven web applications with servlets
  • Build dynamic web page views with JSP
  • Implement the MVC design pattern for Java web applications
  • Configure listeners to initialise web sessions and applications

Pre-Requisites

Requirements:

  • Three to six months of Java programming experience
  • You should have:    
    • An understanding of Java classes and the inheritance model
    • The ability to use standard Java APIs

Recommended Experience:

  • Familiarity with intranet/internet development technologies, such as HTML, HTTP, and TCP/IP

Course Content

Course Outline

Introduction and Overview

Web application development

  • The requirements of a web application
  • Components of an n-tier architecture

Generating Content with Servlets

Getting started with servlets

  • Integrating servlets into the web application architecture
  • Configuring the servlet development environment
  • Avoiding common servlet pitfalls

Utilising the Java Servlet API

  • Servlet life cycle methods
  • Accessing servlet environment variables

Creating web-based forms for user input

  • Adding text fields and drop-down lists
  • Retrieving form data in the servlet

Accessing Databases with Servlets

Extending servlets with Java Database Connectivity

  • Connecting to the database
  • Submitting SQL statements
  • Retrieving and processing data

Formatting database results

  • Constructing an HTML table
  • Adding drill-down features

Maintaining State in Java Web Applications

Writing cookies to personalise web content

  • Retrieving cookies from a client request
  • Sending cookies to the client
  • Circumventing cookie limitations

Managing application state with sessions

  • Creating a unique session for each user
  • Storing and retrieving Java objects within sessions
  • Controlling a session's life span
  • Creating application and session event listeners
  • Implementing a shopping cart

Key components of Java EE for web development

  • Servlets
  • JSP
  • XML

Creating JavaServer Pages (JSP)

JSP fundamentals

  • Using JSP scriptlets, expressions and declarations
  • Communicating with the client using built-in JSPserver objects
  • Leveraging the JSP 2 Expression Language (EL)

State management with JSP

  • Accessing cookies and sessions
  • Storing common application data

Designing JSP and Servlet Architectures

Integrating JSP and JavaBeans

  • Promoting object reuse
  • Separating application logic from the presentation

Calling JSP from servlets

  • Forwarding Java objects to JSP
  • Using JavaBeans to transfer data
  • Servlet and JSP design patterns

Integrating JSP Custom Tags

Leveraging the Tag Extension mechanism

  • The role of JSP custom tags
  • Applying the JSP Standard Tag Library (JSTL)

Developing custom tags

  • Creating custom tags with JSP 2 tag files
  • Customising tag behaviour with attributes

Developing JavaServer Faces (JSF) Applications

JSF framework overview

  • Identifying the JSF core components
  • Managing application flow using JSF navigation model

Building JSF components

  • Developing back beans
  • Creating views with JSF custom tags

Privacy Notice

In order to provide you with the service requested we will need to retain and use your contact information in accordance with our Privacy Notice. If you choose to provide us with this information you explicitly consent to us using the information as necessary to provide the request service to you. If you do not agree please do not proceed to request the service from us.

Marketing Permissions

Would you like to receive our newsletter and other information on products and services which we think will be of interest to you by email. We will always treat your information with care and in accordance with our Privacy Notice. You are free to withdraw this permission at any time.

 

Virtual Classroom

Virtual classrooms provide all the benefits of attending a classroom course without the need to arrange travel and accomodation. Please note that virtual courses are attended in real-time, commencing on a specified date.

Virtual Course Dates

Our Customers Include