Course Description

This 2-day Java Web Programming training course teaches Java developers 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. This course is current to the Servlet 3.0 specification and runs on Apache Tomcat 7.0.

Pre-requisites

Attendance at our Java Programming Introduction training course or equivalent experience.  Knowledge of HTML is also required.

Who is this Course for ?

Java developers who need to develop web applications using JSPs and Servlets.

Further Training

After completing this course, more detailed knowledge of specific Java web technologies can be attained by attending either our Java Struts training course or our Java Server Faces training course.

Course content

Web Applications & MVC
Web Applications
JSPs and Servlets
Model-View-Controller
Model 2 Architecture
The WAR File
web.xml
Building the WAR
Deploying the WAR
JavaServer Pages
Introduction to JSP
JSP Syntax
JSP Scripting Elements
Request and Response Implicit Objects
page Directive
Error Handling
The include Directive
include and forward Actions
Java Servlets
HTTP Requests
HttpServlet
Servlet Lifecycle
@WebServlet Annotation
RequestDispatcher
HttpSession
ServletContext
Servlet Filters
JSP vs. Servlet
JavaBeans
What is a JavaBean?
Rules
Properties
Using JavaBeans in JSPs
Properties and Forms
Data Access Objects
Resource Reference
Bean Scopes in Servlets
Bean Scopes in JSPs
JSP Expression Language
Literals
Variables
The . and [ ] Operators
Other Operators
Implicit Objects
Introduction to JSTL
What is JSTL?
Core Tags – Conditionals
Core Tags – Iteration and Import
Variables, Output, and Exceptions
XML Manipulation Tags
Internationalization Tags
SQL Tags
Security
Concepts
Constraints
Roles
login-config
BASIC Authentication
FORM Authentication
Login and Error Pages
Appendix A – Tag Libraries
Custom Tags
Using Custom Tags
Defining Tags
Tags with Attributes
Fragments and Variables
Packaging Tag Files
Appendix B – Ant
What is Ant?
build.xml
Tasks
Properties and Property Files
Managing Files and Directories
Filesets
Java Tasks
Creating Java Archives
Specifying Paths
Miscellaneous Tasks