Defined Declaration tag in JSP
Declaration in JSP is way to define global java variable and method. This java variable method in declaration can be access normally. Normally declaration does not produce any output, and access of this code is also limited. The declaration code does not reside inside service method of JSP.
Declaration tag is used to define functions, methods and variables that will be used in Java Server Pages.JSP Declaration tag example:
<%! String name = "Vijay Kumar"; String date = "26th Oct, 2010"; %>