The Servlets are used for Controller and JSPs are used for views in MVC model.Ultimately a
JSP is also converted into Servlet.Most of the time the servlets are used when you have to write more
Java code and less HTML code while JSPs are used when you have to write more HTML and less Java.In a project both JSPs and Servlets can be used.