javaspringjsp

What does <%@ mean in JSP?


I'm dissecting a JSP application I found here to try to learn more about it.

I come across a lot of <%@... but I'm not sure what it means and I can't find it explained anywhere.

For example in this context:

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

What does angle bracket percentage sign at symbol mean?


Solution

  • <%@ is the directive attribute. You may include a page or may declare a tag-library using <%@

    Basically, a JSP directive affects the overall structure of the servlet class. There are three types of directive tags:

    More on it here