develop web applications with JSP and servlets

This is a two-day course, to extend core Java skills to building Web applications. The course is built around the JSP technology — an extension to Servlets. The purpose is to show how to use Java to create Web-based applications. Design issues are central to the course, in particular how to:

  • migrate from fat to thin clients
  • divide presentation from application logic
  • modularize server code with server beans
  • use Component Based Design, for example to encapsulate enterprise system access

Duration: 2 days

objectives

  • learn the fundamental technologies: JDBC, applets, Servlets, JSP, JNDI, and server beans
  • build an application with Java Web-based technology
  • partition an application to separate the concerns of presentation, logic, and data
  • decouple the presentation layer with JSP templates

target audience

The course is suitable for Java developers/analysts who wish to write code or work to a productive programming model for the Web. The course is run on the J2EE platform, and the development language is of course Java.

prerequisites

Ideally this training would be preceded by the courses: design and develop Java applications, and J2EE application architectures; then followed by: develop EJB components.

Client/Server applications with JDBC

The starting point for the course is a fat client, implemented with JDBC.

  • JDBC drivers and connection class
  • JDBC statements and result sets
  • access to stored procedures
  • limitations of this model

Applet-based applications

Convert to a Web-based Client/Server application using an Applet.

  • applet syntax and semantics
  • applets and HTML
  • browser restrictions and problems
  • client/server divide in applet-based applications
  • applet to server communication
  • downloadable client model
  • JavaScript alternative for client-side processing

Servlets

Convert to thin client using Servlets.

  • driver independence and middleware
  • JNDI database lookups
  • JNDI context
  • running JVM models
  • cycling object instances
  • request / response model
  • action on data
  • manipulate JavaBeans (get / set data)
  • session state data
  • Servlet containers
  • deployment

Java Server Pages (JSP)

Partition view generation with JSP.

  • dynamic presentation generation problems
  • from Servlets to JSP
  • JSP syntax and semantics
  • declarations
  • scriptlets: Java embedded in HTML
  • JSP and the MVC architecture

Server beans

Modularize presentation logic with server beans.

  • JavaBeans access from JSP
  • JavaBeans encapsulation of data and logic
  • threading and integrity issues
  • roles with MVC

JSP templates

Partition dynamic elements from static with JSP templates.

  • custom actions
  • encapsulation of presentation functions
  • tag libraries
  • template mechanism
  • future role of XML
  • current limitations of XML

Java Web application patterns

Use tested techniques for server side objects, encapsulated in patterns.

  • factory pattern and database connection pools
  • factory pattern and lifecycle control
  • command pattern and access to enterprise components
  • mediator pattern and security issues

Please note, when taught at your site, this course is customizable. Modules can be adapted, removed, added from other courses, or even created.

timetable

Day 1

  • Client/Server applications with JDBC
  • Applet-based applications
  • Servlets

Day 2

  • Java Server Pages (JSP)
  • Server beans
  • JSP templates
  • Java Web application patterns

course instructor

It is presented by one of our senior consultants, each of whom has at least ten years' experience in software development, and at least three years' experience as a trainer and consultant in a diverse range of application areas.

print     printer-friendly version