Advanced Customization > Info*Engine User’s Guide > Info*Engine Custom Tag Reference > Declarations
  
Declarations
A declaration specifies text that declares variables and methods that are used on the JSP page or Info*Engine standalone task.
Standalone Task Use
The task compiler emits the text in each declaration at the outermost scope of the Java class it generates for the task. Therefore, the declarations become static or instance variables and methods on the class. You can also use declarations to define static initialization blocks for the generated class.
JSP Use
Declarations are initialized when the JSP page is initialized and are made available to other declarations, scriptlets, and expressions.
Tag Syntax
<%! declaration %>
Example
The first declaration declares an integer and initializes it to zero, the second declaration declares a method:
<%! int i = 0; %>

<%! public int add ( int a, int b ) { return a+b; } %>