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 %>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.