Learn how Jakarta servlets are used to build web-based systems with Java.
Overview
Syllabus
Introduction
- Jakarta Servlets: Building amazing web-based systems with Java
- Developing web-based systems with Servlets
- Servlet containers
- Standalone vs. embedded containers
- Setting up your development environment
- Running an embedded container
- Installing a standalone Servlet container
- H+ Sport project
- Running Servlets in a standalone container
- HTTP request messages
- Mapping requests to a Servlet
- Advanced Servlet mappings
- Request handler methods
- Obtaining data from query parameters
- Obtaining data from the path
- Obtaining data from headers
- Obtaining form data from the request body
- Obtaining JSON data from the request body
- Challenge: Handling Servlet requests
- Solution: Handling Servlet requests
- HTTP response messages
- Building a response body
- Setting response status codes
- Returning response headers
- Challenge: Creating Servlet responses
- Solution: Creating Servlet responses
- Advanced request-handling techniques
- Filters
- Forwarding requests
- Redirecting a request
- Handling errors in Servlets
- Configuration with Servlet initialization parameters
- Configuration with context parameters
- Setting up the host environment
- Creating a WAR file
- Deploying Servlets to a standalone container
- Next steps
Taught by
Tayo Koleoso