M
M
Maxim Fedorov2019-09-12 18:58:49
Java
Maxim Fedorov, 2019-09-12 18:58:49

What is a servlet?

Today I just decided to take a little walk in familiarization - why is there in Java,
I ran through the articles and immediately everywhere infa about servlets. Details are written everywhere, but there is no abstract description and purpose.
Correctly I understand that this is an abstraction that essentially wraps the request / response to us and provides an interface for working with the server in the application.
If, by analogy with PHP, this is something abstract like php-fpm/cgi (creates only a thread, not a process) and that brings us a convenient interface ( some analogue of $_POST/$_GET wrapped in the PSR Request / Response interface) to work with http abstraction inside a web application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-09-12
@Maksclub

Of course, I apologize and have never been a javer, but a quick Google gives an excellent answer and does not confuse applets (which we remember very well) with servlets.
https://ru.wikipedia.org/wiki/%D0%A1%D0%B5%D1%80%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question