What are JSP declarations?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What are JSP declarations?
Rating:
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, i.e., they have page scope. A declaration block is enclosed between the <%! and %> tags. A declaration is not included in the service() method when a JSP is translated to a servlet.
Rating:
Was this information helpful?
Other articles
- What is the jspInit() method?
- What is a session?
- What is an EL function?
- What is the getSession() method?
- What are the attributes of various standard actions?