JSP Tutorial

            

Declaration tag ( <%!  %> )

This tag allows the developer to declare variables or methods.

Before the declaration you must have <%!

At the end of the declaration, the developer must have %>

 

Code placed in this tag must end in a semicolon ( ; ).

 

Declarations do not generate output so are used with JSP expressions or scriptlets.

 

For Example,

 

<%!

 

          private int counter = 0 ;

          private String get Account ( int accountNo) ;

%>