JSP stands for Java Server Page. JSP provides a easy and fast way to create dynamic web content.
JSP is a server side programming technology for developing web pages. Using JSP developers can
insert java code in HTML pages by making use of JSP tags. When a jsp file is compiled, it creates
a java file in other words it creates servlet. The flow of JSP compilation is shown in the below
diagram.
Every web container vendor provides a tool called jsp compiler (jspc). This tool takes jsp file
as a parameter and generates a java file that contains the code for a servlet. This java file will
be compiled by using javac.
When we send a request to a java server page, the web container checks whether there exists a servlet
corresponding to the java server page If there is no servlet internally the web container runs the
jsp compiler (jspc) to generate a servlet class. This class will be used to create a servlet object.
If the servlet is already available the web container will not use the jsp compiler.
No comments:
Post a Comment