Whats the difference between JSP and servlets?
Ultimately, servlets and JSP are the same thing. When you deploy JSP documents, the servlet container generates Java source code from the text and tags, then compiles the source to create servlet classes. The JSP servlet classes are then used to service requests the same way as standard servlets. The key difference is the way the way the servlet source is created; as a standard Java source file, or a template that is essentially an HTML document with JSP tags. Actions: Follow-up, clarify or correct this answer. Submit a new question.