Scripting elementsScripting elements are those that provide the ability to insert Java code inside JSP. In JSP the scripting elements are written inside "< %.....% >" tags. The codes inside "<%....% >" tags are processed by the JSP engine during the translation of the JSP pages. The text or code written in JSP pages apart from the preceding tags is treated as HTML content.Types of scripting elementsBasically scripting elements are of the following five types.
JSP Comment tag
A JSP comment tag is used in JSP pages when you are creating something. When you want to explain how the procedure you are using to build the JSP pages, you can put your explanation in comment tags. These comments are only seen in JSP pages and not included in the servlet source code during the translation phase, they are not even in the HTTP response.
Note
A pure JSP comment is called a "hidden comment" that is not visible at the client site and the syntax is given below.
Syntax
The HTML comment is known as an "output comment" and is visible at the client site and the syntax is given below.
Directive tags are used to provide the special instructions to the web container during the page translation.
Page directive
The page directive defines various types of page-independent properties (such as language, session, errorPage, and so on) that communicate to the web container during the translation.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: