Learn how to build dynamic web pages using servlets and JavaServer Pages (JSP).
Overview
Syllabus
Introduction
- Welcome
- What you should know
- Using the exercise files
- Understanding the purpose of servlets
- Environment setup: Create a web project
- Environment setup: Deploy and run
- Alternative setups
- Project application setup
- Types of HTTP requests
- Implementing a GET request in a web app
- Search: Setting up a database connection
- Search: Querying the database
- Search: Building a servlet response
- POST request basics
- Register user: Collecting form data and calling DAO
- Register user: Querying database and building response
- Register user: Behind the scenes
- Understanding forwarding
- Understanding redirection
- Using ServletConfig
- Using ServletContext
- Using request/response objects
- Scopes and parameters vs. attributes
- Understanding the servlet life cycle
- Using the servlet life cycle
- Understanding JSP and its features
- JSP elements: Scriptlet, declaration, and expression
- JSP elements: Scriptlet and expression
- JSP elements: Declaration
- Understanding the JSP life cycle
- JSP directives: Page
- JSP directives: Include and taglib
- Understanding implicit objects in JSP
- Understanding the need for session management
- Cookies for session management
- Using cookies
- URL rewriting for session management
- Using URL rewriting
- Consuming session APIs in a web app
- Understanding the need for filters in a web app
- Filters: User validation in a servlet
- Filters: Display error and set up filter class
- Filters: Implement filter logic
- Understanding the need for listeners in a web app
- Using listeners in a web app
- Understanding the advent of standard actions
- JSP standard actions: Querying database
- JSP standard actions: Displaying data
- Expression language
- Using expression language in JSP
- Using implicit objects of expression language
- Need for JSTL and its modules
- Core module: Querying database
- Core module: Displaying data
- FMT module
- Custom tag library
- Custom tag: Define tag handler and TLD
- Custom tag: Use tag on JSP
- Next steps
Taught by
Ketkee Aryamane