InfoCenter Home > 4.2.2.3.2: JSP syntax: Class-wide variables and methodsUse the <%! declaration(s) %> syntax to declare class-wide variables and class-wide methods for the servlet class. An example of specifying class-wide variables and methods: <%! int i=0; String foo = "Hello"; %> <%! private void foo() {// code for the method } %>
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|