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
- 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
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.
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
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
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
Java Server Pages (JSP)
Partition view generation with JSP.
- dynamic presentation generation problems
- from Servlets to JSP
- JSP syntax and semantics
- scriptlets: Java embedded in HTML
- JSP and the MVC architecture
Modularize presentation logic with server beans.
- JavaBeans access from JSP
- JavaBeans encapsulation of data and logic
- threading and integrity issues
- roles with MVC
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.
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.