JSP has following directive tags:
- Page: This directive is used for page related attributes. It can be put anywhere in the JSP page. But by convention we put it on the top of the page.
<%@ page attribute=”value”%>
- Taglib: We can create custom tags in JSP and use these by taglib directive in a JSP page.
<%@ taglib uri=“abc.html” prefix=“tag_prefix”% >
- Include: We use include directive to read a file and merge its content with the JSP page. This is done during compilation stage.
<%@ include file=”relative url”% >