Question: what are jsp and servlets?
Answer: JSP is a webpage scripting language that can generate dynamic content while Servlets are Java programs that are already compiled which also creates dynamic web content. In MVC, jsp acts as a view and servlet acts as a controller. JSP are generally preferred when there is not much processing of data required.