dcsimg

It is a basic concept that JSPs compile into servlets. What happens to JSP scriptlets? How are they compiled and excuted?

Kumar Allamraju

Scriptlets are included within the body of your JSP servlet's service() method. JSP Scriptlets are thus executed at request time, when the JSP engine processes the client request. If the scriptlet produces output, the output is buffered in the out (JSPWriter's) object, which is then ultimately sent to the client.