What are Servlets

Question from Gergő#5263

What does Servlet mean?

And DispatchServlet

It's kinda historical.

It's a term for a small, pluggable bit of what would be a larger server.

The only aspect you should need to care about is that it is the interface by which you can attach to Jetty and handle http requests.

thanks!, and what is jetty? 🧐

It's a Java web server.

You would have Jetty handle connecting to whatever ports and parsing http requests and your code in the "servlet" would decide how to respond to those requests.


<- Index