How a JSP is compiled into servlets by the container

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
How to use Javabeans from JSP pages?
How to use Javabeans from JSP pages? - Java beans are directly supported in JSP with JSP language elements...
What is Tag extension in JSP model?
What is Tag extension in JSP model? - JSP supports the authors to add their own custom tags that perform custom actions...
What is Tag library descriptor (TLD)?
What is Tag library descriptor (TLD)? - The custom tags can be implemented or redistributed with tag handlers that are written in Java...
Post your comment