December 9, 2009 at 2:32 PM
Template Data is a parameterized content that allows the JSP document to generate a response stream of characters.
JSP Elements provides information that will be translated and executed by the JSP server.
Types of JSP elements:
1)Directive Element: It provides global information for the translation phase.
<%@ page language="java" %>
2)Scripting Element: It provides embedded Java statements. There are three types of scripting elements:
a)Declaration Element: It provides the embedded Java declaration statements to be inserted into the Servlet class.
<%! Java decalaration statements %>
b)Scriptlet Element: It provides the embedded Java statements to be executed as part of the service method of the Servlet class. There are two ways to write a scriptlet element:
<% Java statements %>
c)Expression Element: It provides the embedded Java expressions to be evaluated as part of the service method of the Servlet class.
<% Java expressions %>