Java servlets and JSP Course Description.
Course Objectives:
- Learn how to write dynamic web applications using Java Servlets and JSP.
- Learn the Servlet API.
- Learn how to write JSP pages.
- Learn how to create custom JSP tags.
Prerequisites:
- Students should have knowledge of Java programming language.
- Students should have working knowledge of HTML and understanding of Web concepts.
This course includes the following material:
- A Java servlets and JSP textbook: Head First Servlets & JSP. Bryan Basham, Kathy Sierra, Bert Bates, ORielly
- A set of course notes
Outline:
1. Servlet Overview
Why servletsExample of simple servlet
Getting started with Tomcat
HTTP Overview
Web Applications
Servlet lifecycle
Servlet threading model
2. Server
Servlet contextRetrieving environment information
3. Client Request
HttpServletRequestHTTP request headers
4. Servlet Response
HttpServletResponseGenerating HTML pages
HTTP status codes
HTTP response headers
Handling Errors and Exceptions
5. Session Tracking
Hidden Form fieldsURL Rewriting
Cookies
Session Tracking API
6. Applet-Servlet Communication
Applet GET requestsTransferring serialized data
Applet POST requests
7. JSP Overview
Why JSPExample of simple JSP
8. JSP Processing
Scripting elements (Expressions, Scriptlets, Declarations)Predefined variables
Declaring variables and methods
JSP Directives
9. Using JavaBeans with JSP
Creating and using Java beansSetting bean properties manually
Setting bean properties with input parameters
Bean scope
10. JSP Custom Actions
Using custom actionsDeveloping custom actions
Tag extension basics
JSP taglib directive
Tag library descriptor
11. Integrating Servlets and JSP
MVC modelPassing data between JSP pages
Forwarding Requests
12. Authentication
Form-Based AuthenticationBasic Authentication
SSL (Secure Socket Layer)
