EC33 - Java ServerPage Programming - 2 Days

Course Description

This course is targeted at the developer, already familiar with JAVA Servlet programming, with a detailed knowledge of JavaServer Pages. During the course the student will write JSPs and JavaBeans which interact with Servlets and HTTP clients using the Model, View, Control (MVC) architecture.


Pre-requisites

The student should be familiar with Java Programming and Java Servlet Programming. This knowledge can be gained by attending courses EC21, EC22 and EC32.


Objectives

This course provides students with the skills to write effective JavaServer Pages and JavaBeans.
While covering these in detail, the course retains a 'high level' overview of the Design Patterns used for such development.
During the course the student will write many of these to ensure that the statements taught are fully understood and practical experience is gained.
On completion of this course the student will be able to:

  • code JavaServer Pages
  • access JavaBeans from servlets / JSPs
  • use JSP tags
  • understand JSP JavaBean scopes
  • use JSP forwarding
  • use Model, View, Controller methodology
  • use JSP error pages
  • use the Eclipse testing environment (if applicable)


Environment

Development will be performed using:

  • Eclipse
  • IntelliJ <img src="http://www.casetraining.co.uk/images/new2.gif" />
  • NetBeans
  • JBuilder


Customisation

For on-site courses (i.e. at your premises), we are more than happy to tailor the course agenda to suit your exact requirements. In many cases, we are able to build your in-house standards and naming conventions into the delivered course.


Course Details

JAVASERVER PAGES
JSP Overview
The Problem with Servlets - Why use JSPs?
How JSP Pages Are Executed
Writing a JavaServer Page
JSP Tags, Directive Tags, Scripting Tags & Scriptlets, Action Tags
JSP Pre-Defined Objects
Including Static and Dynamic Content
Forwarding execution to Servlets, JSPxxs or HTML pages.
JSP Initialisation and Cleanup

JSP DESIGN PATTERNS
MVC Architecture
Where are JSPs used?
JSP Design Patterns
Stand alone JSPs, JSPs calling Servlets, JSPs accessing JavaBeans
Getting data from HTML Forms to JSPs
Handling HTML Forms
JavaBeans
Using JavaBeans
Form / Bean / JSP Interaction
Accessing JavaBeans from JSPs - JavaBean Tags
Getting Data from the Bean to the JSP Page
Variable and JavaBean Scopes
JSP Variable Scopes
JavaBean Scopes
Moving around!
Invoking a JSP from a Servlet
Passing Objects from Servlet to JSP
Passing JavaBeans from Servlet to JSP
Error Handling
The JSP Error Page
Full Shopping Cart Example

CUSTOM TAG OVERVIEW
Why use Custom Tags?
How are Custom Tags implemented?
Custom Tag Elements, the Tag Library Descriptor (TLD)
The Tag Handler Class, using JavaBeans to Implement Tags


Course Format

Practical sessions make up a large part of the course, allowing delegates to demonstrate and reinforce the lectures given.
Examples are used extensively, ranging from simple code 'snippets' to full applications with complete 'real world' functionality. These are supplied at the start of the course and it is encouraged that the delegates execute and 'experiment' with these under the instructor's guidance as they are introduced.
These examples are available to take away, along with the delegate's own work.
The comprehensive Student Guide supplied is fully indexed serving as a useful reference tool long after the course has finished. Delegates will also be able to access a free help-line with technical questions relating to topics covered on the course.


Course Enquiry