Explain how a JSP is compiled into servlets by the container.JSPs are compiled into JavaServlets by the JSP container. A JSP compiler may generate a servlet in java code that is compiled by the java compiler or the bytecode may be generated directly for the servlet. JSP directives control the compilation process of a JSP that generates a servlet. Tomcat web server provides the JSP compilation as a task of ANT tool. The JSP compiled servlets are stored by ANT in work folder of CATALINA_HOME
|