JSP elements
A JSP page looks like a standard HTML or XML page with additional elements processed by the JSP engine. Typically, these elements create text that is inserted into the resulting document.
JSP elements include:
- Scriptlet enclosed in <% and %> markers: a small script in Java to perform arbitrary functions. Executed in the underlying servlet context.
- Expression: anything between <%= and %> markers is evaluated by the JSP engine as a Java expression in the servlet context.
- JSP directive enclosed in <%@ and %> markers—passes information to the JSP engine (guides “compilation”).
- JSP actions or tags are a set of customizable XML-style tags for particular actions, e.g. predefine jsp:useBean instantiates a Java Bean class on the server.