JSP stands for Java server page. It is based on java programming languages. It is used to develop dynamic web pages. It was developed by Sun Microsystems to allow server side development. JSP files are HTML files with special Tags containing Java source code that provide the dynamic content. JSP provide excellent server side scripting support for creating database driven web applications. JSP allows developers to create wide ranges of web application like ecommerce, banking...etc. It can combine with HTML, XML, Java Servlet and JavaBeans technologies into one highly productive technology which allow web developers to develop reliable, high performance and platform independent web applications. JSP is the technology and whose specification is implemented by server vendors. JSP is an alternative technology for servlet. Since, servlet having the following limitations:-
There are various advantage of JSP given below:-
Whenever we will write code in a JSP page, that JSP page will undergo the following phases:-
Translation phase:- It is one which converts .jsp program into .java program internally by the container. Once the translation phase is completed the entire JSP program is available into a pure java program.
Compilation phase:- It is one which converts .java program into .class file provided no errors found in .java program by the container. If errors are found by the container in .java program those errors will be listed in the browser.
Running or Execution phase:- It is the process of executing .class file by the container.