servlet
Noun
Meaning
servlet (plural servlets)
(object-oriented programming, server) A Java program running on an Internet server that generates web content dynamically in response to requests from clients.
The difference between servlets and JSP is that servlets typically embed HTML inside Java code, while JSPs embed Java code in HTML.
Synonyms
Related terms
Phrases with the word
Examples
A JSP is compiled to a Java servlet, a Java application in its own right, the first time it is accessed.
Applet Vs. Subroutine A larger application distinguishes its applets through several features: * Applets execute only on the "client" platform environment of a system, as contrasted from " servlet ".
A servlet can almost be thought of as an applet that runs on the server side—without a face.
All threads will however "see" the same servlet instance but will call the servlets get method with their own data since each thread has its own stack.
JSPs are translated into servlets at runtime; each JSP servlet is cached and re-used until the original JSP is modified.
After that, the generated servlet creates the response.