Servlets are the core place to deal with requests and responses using Jakarta EE. If you are still not familiar with it, consider this. A JSP is simply a way to build a servlet once the page is called. So, it is the place to deal with this request.
This recipe will show you three features to take advantage of when using servlets:
- Load on startup
- Parameterized servlets
- Asynchronous servlets