A JSP page can have two types of data:A JSP page can have two types of data:
A JSP page can have two types of data:
There are three types of JSP elements:
Directive Elements: The directive elements, contains the information about the page itself that remains the same between requests for the page. The general directive syntax is:
<%@ directiveName attr1="value1" attr2="value2" %>
The directive name and all attribute names are case-sensitive and the attribute values can be enclosed with single quotes instead of double quotes.
Action Element: Action elements generally performs some action depending on the information required at when the JSP page is requested by a browser. An action can access parameters sent with the request in order to lookup the database.
The general syntax for the action elements is:
<action_name attribute=value ...>action_body</action_name> <action_name attribute=value .../>
Scripting Element: A JSP element is an element that provides embedded Java statements. A JSP page can have three types of scripting elements:
<%! Java decalaration statements %>
<% Java statements %>
<% Java expressoins %>