I am fairly new to JSP but I am pretty good at Java.
In some tutorials on the internet you use
<%
and other times you use
<%!
What is the difference between these two exactly?
I am fairly new to JSP but I am pretty good at Java.
In some tutorials on the internet you use
<%
and other times you use
<%!
What is the difference between these two exactly?
The <%! is used for class content declarations and <% is used for request method body instructions.
Take a look at an example of JSP Tutorial - Declarations
<% is for normal jsp scriplets and <%! is for static methods and variables.