Question: how jsp is different from servlet?
Answer: JSP is a html based code. Writing code for servlet is harder than JSP as it is html in java. ... 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.