JSP Scripting Elements

SAD
  • Scripting Elements: embedded Java statements.
  • Declaration Element: is the embedded Java declaration statement, which gets inserted at the Servlet class level, so it is not thread safe. <%! %>
  • Expression Element: is the embedded Java expression, which gets evaluated by the service method. <%= %>
  • Scriptlet Elements: are the embedded Java statements, which get executed as part of the service method. <% %>
  • Action Elements: A JSP element that provides information for execution phase.
  • Directive Elements: A JSP element that provides global information for the translation phase.
<%@ page import=”java.util.Date” %> <%@ include file=”myJSP” %> <%@ taglib uri=”tagliburi” prefix=”myTag”%>