Abekus — AI learning and job matching platform logo

Java Servlets

  • 71 lessons
  • About 8 hours
  • Self-paced
0%Complete
Guided Mode

Start with lesson 1

71 lessons. The first one is free, no signup needed.

🗺️ Your learning path
Your First Servlet
Packages and Versions

What you'll learn

  • Write a servlet with the jakarta.servlet API, map it with @WebServlet or web.xml, and deploy it as a WAR on Tomcat 11.
  • Explain the servlet lifecycle and the one-instance, many-threads model, and write thread-safe servlets.
  • Read parameters, headers and request bodies, and choose forward, include or redirect with the correct status codes.
  • Manage state with sessions, cookies and request, session and application scopes, including HttpOnly, Secure and SameSite cookie attributes.
  • Use filters and listeners for cross-cutting work, and asynchronous processing for slow requests.
  • Protect a servlet app against session fixation, XSS and CSRF, and migrate a javax app to Jakarta on Tomcat 11.

About this course

A servlet is a Java class that runs inside a web container such as Apache Tomcat and answers HTTP requests. Spring MVC, JSP and most Java web frameworks are built on the Servlet API, so knowing how servlets, filters and sessions work explains a lot of what those frameworks do for you. This online Java Servlets course on Abekus teaches the API from a first servlet answering GET /hello up to filters, listeners, asynchronous processing and security, in short reading-card lessons each followed by an MCQ quiz.

Jobs that ask for Java

941 live openings list Java as a required skill.

See all Java jobs ›

Frequently asked questions