JVSV - Java Servlet Programming
This practical, application-oriented course teaches Java Servlet Programming technology and shows students how to use it to develop simple to complex Web applications. Students will be introduced to server-side Java programming and Web protocols; the Java Servlets architecture, the request/response cycle, and servlet life cycle, and how to build interactive Web applications that parse and/or generate HTML forms; patterns for servlet application architecture; developing sophisticated client/server conversations over several HTML pages; multi-tier applications using servlets and JDBC for access to relational databases; the concept of the separation of programmatic and declarative development; use of configuration and context information in lieu of hard-coded values, resource locations, etc., to make the Web application as portable and easy to administer as possible; JavaBeans as a standard for business and data objects that can be shared among servlets and JSPs, and techniques for sharing such objects at session scope or by request forwarding; filters to adapt existing servlets with new features, and to maximize the decomposition of logic between vertical business functions and horizontal facilities, and how to implement filters to adapt existing servlets by pre- and post-processing the request and response.
Web Applications
Server-Side Programming
Web Protocols and Web Applications
Role of Web Servers
Java Servlets
Using Tomcat Web server
Structure of a Java Servlet
Servlets Architecture
Servlets Architecture
Servlet and HttpServlet
Request and Response
Reading Request Parameters
Producing an HTML Response
Redirecting the Web Server
Deployment Descriptors
Servlets Life Cycle
Relationship to the Container
Interactive Web Applications
Building an HTML Interface
HTML Forms
Handling Form Input
Application Architecture
Single-Servlet Model
Multiple-Servlet Model
Routing Servlet Model
Template Parsers
Session Management
Managing Client State
Sessions
Session Implementations
HttpSession
Session Attributes
Session Events
Invalidating Sessions
Database Access
JDBC
JDBC Drivers
Using JDBC in a Servlet
Data Access Objects
Threading Issues
Transactions
Connection Pooling
Configuration and Context
The Need for Configuration
Initialization Parameters
Properties Files
JNDI and the Component Environment
JDBC Data Sources
Working with XML Data
Filters
Servlet Filters
Uses for Filters
Building a Filter
Filter Configuration and Context
Filter Chains
Deploying Filters