Syntax of Scriptlet Element
-
<% code %>
-
<@jsp code %>
-
<jsp: scriptlet code />
-
<%jsp code %>
A
Correct answer
Explanation
JSP scriptlets use the syntax <% code %> to embed Java code that executes during page generation. The percentage symbols distinguish scriptlets from other JSP elements. Other options are incorrect - @jsp is not a valid prefix, and jsp:scriptlet is for XML-style actions, not scriptlets. Scriptlets are one of three main JSP scripting elements.