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"; %>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.