1.

What is a JSP Declaration?

Answer»

The TAGS used in declaring variables are called JSP Declaration tags. These are used in declaring FUNCTIONS and variables. They are enclosed in <%!%> tag. Following is the syntax for JSP Declaration:

<%@page contentType=”text/html” %><html><body><%!int a=0;private int getCount(){a++;RETURN a;}%><p>Values of a are:</p><p><%=getCount()%></p></body></html>


Discussion

No Comment Found