L
L
Licht2019-11-14 19:36:37
Java
Licht, 2019-11-14 19:36:37

Tomcat, Servlets?

Did I understand correctly from the wiki article that a servlet is a java class that is inherited from HttpServlet? In this case, when they say that Tomcat is a container, do they mean that it stores all servlets inside itself and manages their life cycle (Like Spring and its beans) ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-11-14
@wLicht

That's right, but not necessarily HttpServlet, you can inherit the Servlet interface or the GenericServlet class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question