hello,
JSP is Java code embedded in HTML; the Java code is compiled (if necessary) and run by the container on the server and the client only sees the results of that code's execution mixed in appropriately with the html.
Servlets are compiled pure Java class files (not mixed with HTML) that get posts from the client and send html to in return.
but both reqiured container on the server, such as
Tomcat.