Question: why jsp is converted to servlet?
Answer: JSPs are compiled into Java servlets on the server-side. Their main purpose is to make it easier to write and maintain HTML/CSS/JS since doing that in an actual servlet includes a lot of work.