In this section you will learn about the JSP.
This section will help you in to understand What is JSP , What are the features of JSP ?, What is a JSP page ?, Why use JSP?, Life cycle of JSP, Versions of JSP, Implicit objects in JSP, JSP Scriptlets, JSP directives, Actions in JSP.
JSP is an acronym for JavaServer Pages. JSP is a technology that facilitate web developer to build web applications using both static and dynamic content. In a JSP page a web developer can write HTML code along with the Java Code. Java codes are written on the JSP page within JSP tag <% %>, codes written inside these tags are executed inside the Java Servlet technology.
Features of JSP technology are as follows :
What is a JSP Page ?
A JSP page is a text document which may contain the static data and dynamic contents. Static data can be in any text based format for example HTML, XML, SVG, WML whereas, dynamic contents can be constructed using JSP elements. File extension of a source file of JSP page is .jsp and the file extension of source file of fragment JSP page is .jspf. In a JSP page JSP elements can be used in either of the following two ways first way is using the Standard syntax and the second is using XML syntax.
Why use JSP?
In comparison to Servlet there are various advantages of using JSP.
There is a Life cycle of JSP page which follows the following phases :
There are nine(9) Implicit objects in JSP these are as follows :
JSP supports three types of scriptlet elements these are as follows :
JSP supports three types of directive elements these are as follows :
Action tags or elements in JSP are defined for performing a specific tasks. There are various of actions tags are defined in JSP these are as follows:
Liked it! Share this Tutorial