Jakarta EE Servlets
2h 36mIntermediate2023-04-27
Authors

Kevin Bowersox
Full-Stack Java Developer, Instructor
Course details
In this course, Kevin Bowersox provides you with an understanding of Jakarta servlets and how they are used to build web-based systems with Java. Kevin covers important topics like: the concepts behind why servlets are used and how they relate to other web frameworks; the key interfaces within the Jakarta EE servlet specification; creating and configuring a project that uses servlet technologies; how to process web requests using servlets; and how to augment web request processing with filters. Plus, he shares common pitfalls to avoid when using servlets.
Skills covered
Jakarta EEBack-End Web DevelopmentWeb DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Jakarta Servlets - Building amazing web-based systems with Java
1. Getting Started with Jakarta Servlets
- 02 - Developing web-based systems with Servlets
- 03 - Servlet containers
- 04 - Standalone vs. embedded containers
- 05 - Setting up your development environment
- 06 - Running an embedded container
- 07 - Installing a standalone Servlet container
- 08 - H+ Sport project
- 09 - Running Servlets in a standalone container
2. Handling Web Requests with Servlets
- 10 - HTTP request messages
- 11 - Mapping requests to a Servlet
- 12 - Advanced Servlet mappings
- 13 - Request handler methods
- 14 - Obtaining data from query parameters
- 15 - Obtaining data from the path
- 16 - Obtaining data from headers
- 17 - Obtaining form data from the request body
- 18 - Obtaining JSON data from the request body
- 19 - Challenge - Handling Servlet requests
- 20 - Solution - Handling Servlet requests
3. Returning Responses from Servlets
- 21 - HTTP response messages
- 22 - Building a response body
- 23 - Setting response status codes
- 24 - Returning response headers
- 25 - Challenge - Creating Servlet responses
- 26 - Solution - Creating Servlet responses
4. Filtering, Error Handling, and Dispatching in Servlets
- 27 - Advanced request-handling techniques
- 28 - Filters
- 29 - Forwarding requests
- 30 - Redirecting a request
- 31 - Handling errors in Servlets
5. Servlet Configuration and Deployment
- 32 - Configuration with Servlet initialization parameters
- 33 - Configuration with context parameters
- 34 - Setting up the host environment
- 35 - Creating a WAR file
- 36 - Deploying Servlets to a standalone container
Conclusion
- 37 - Next steps