JakartaEE

Posts about JakartaEE, an open source framework for Cloud Native Java.

How to create a Servlet

In a Web Application a Servlet can be defined in three ways: using the WebServlet annotationwriting the configuration in the deployment descriptorprogrammatically using ServerContext and ServletRegistration.Dynamic APIsUsing the WebServlet annotationThe WebServlet annotation