Question: how jsp is better than servlet?
Answer: JSP is the view in MVC approach for showing output. Servlet is faster than JSP. JSP is slower than Servlet because the first step in JSP lifecycle is the translation of JSP to java code and then compile. Servlet can accept all protocol requests.