Dear Actually Jsp itself based on special java classes
called servlets. study in depth will show u that each Jsp tag will be converted
into method of servlets like Declaration tag converts to init() method of servlet Scriptlet is alternative of service method and page directives are alternatives of import statements and jsp itself will be converted into a servlet
after execution. and you can see that every servlet of every jsp page
by exploring WEB-INF and then classes folder.
This perception is wrong that java is not pure object oriented because of jsp.