3
Contributors
2
Replies
6
Views
6 Years
Discussion Span
Last Post by adronhill
0

servlet is a Java class implementing the javax.servlet.Servlet interface that runs within a Web or application server's servlet engine, servicing client requests forwarded to it through the server.
A Java Server Page is a slightly more complicated beast. JSP pages contain a mixture of HTML, Java scripts (not to be confused with JavaScript), JSP elements, and JSP directives.
The elements in a Java Server Page will generally be compiled by the JSP engine into a servlet, but the JSP specification only requires that the JSP page execution entity follow the Servlet Protocol.

-1

The Difference of JSP and Servlet

1. JSP is a web scripting language that can generate dynamic content, which is a Java Servlet program, has also been prepared to create dynamic web content.
2. Servlets comparison, JSP run faster.
3. JSP can be compiled into Java Servlets's.
4. It easier than in Java in the JSP code.
5. JSP and Java Servlets are usually used in combination today.

Votes + Comments
This answer is just useless.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.