- JSP Elements & Directives
Scripting | Element Example |
---|---|
Comment | <%-- comment --%> |
Directive | <%@ directive %> |
Declaration | <%! declarations %> |
Scriptlet | <% scriplets %> |
Expression | <%= expression %> |
Several jsp directives is used to provide directions and instructions to the container, telling it how to handle certain aspects of JSP process.
Directive | Description |
---|---|
<%@ page ... %> | Defines page-dependent attributes, such as scripting language, error page, and buffering requirements. |
<%@ include ... %> | Includes a file during the translation phase. |
<%@ taglib ... %> | Declares a tag library containing custom action to use in the page |