JSP declaration directive is used to declare variables that are accessible through out the JSP.

Java Code:
<%!
  String name = "Denver";
%>

<HTML>
  <TITLE>Declaration Tag Example</TITLE>
  <BODY>
    Welcome <%= name %>.
  </BODY>
</HTML>