Ori Weisler wrote:ok, I got it.
No, that's not quite it.
Don't confuse the servlet created on behalf of a JSP (which is just an implementation detail) with servlets that you define yourself. In fact, unless you want to go look at that generated servlet for academic purposes, you can just forget that JSPs get turned into servlets.
In modern accepted web app structures, a servlet gets control first as the result of a request. This servlet is known as a "page controller". It performs any data fetching or other activities necessary to show the "view" which is usually defined via a JSP page.
Control transitions from the page controller to its view via the request dispatcher.
The only relationship between the controller servlet and its JSP view is the loose coupling provided by the request dispatcher.
You might benefit from reading
this article on web app structuring.