The primary goal of JSP is to replace Servlets because of few reasons:
> to reduce development cost, and also burden of the jsp developer to write most common statements like package declaration, import statement,
class declaration and life cycle methods etc..
> in jsp no need to implement the life cycle functions like init(), service() and destroy() method.
> jsp presents dynamically retrieved data from the different layers of java web application development.