Your JSP code is embedded as a scripting language inside your HTMl code.
<% code goes here %>
begin and end token - this refers to the service method.
Expression tag
<%= ... %>
Declarations
<%! ... %> - treated as instance variable in a Servlet (remember that JSP ends up as a servlet). But there is only one - is this a static variable or not??