In servlet if we want to generate a page which consist of some dynamic content then we have to include the static content also along with the dynamic content.
i.e. when a huge view has to be generated then there is a problem for application development and modification.
Servlets are not useful for response generation purpose, they do not provide the separation between business logic and presentation logic.
That’s why JSP came for the view purpose.