1.

What Are Jsp Declarations?

Answer»

As the name implies, JSP declarations are used to declare class VARIABLES and methods in a JSP page. They are initialized when the class is initialized. Anything defined in a declaration is available for the whole JSP page. A declaration BLOCK is enclosed between the <%! and %> tags. A declaration is not INCLUDED in theservice() METHOD when a JSP is TRANSLATED to a servlet.

As the name implies, JSP declarations are used to declare class variables and methods in a JSP page. They are initialized when the class is initialized. Anything defined in a declaration is available for the whole JSP page. A declaration block is enclosed between the <%! and %> tags. A declaration is not included in theservice() method when a JSP is translated to a servlet.



Discussion

No Comment Found