servlets
Servlets are Java programs that run on a server and extend the capabilities of a web server by responding to requests with dynamically generated content. They are implemented using the Servlet API and execute inside a servlet container or application server such as Apache Tomcat, Jetty, GlassFish, or WildFly. The most common servlet type is HttpServlet, which handles HTTP requests.
A servlet is a Java class that usually extends HttpServlet or implements the Servlet interface. It participates
Configuration: URL mapping is defined via web.xml or annotations like @WebServlet. They are packaged in a WAR
Usage and role: In modern web applications, servlets often serve as controllers in the Model-View-Controller pattern,