tag life cycle methods

Tag life cycle: Tag life cycle describes how and when a tag object is created, initialized, and is used by the tag processor for processing a custom tag. Tag life cycle is defined by javax.servlet.jsp.tagext.Tag interface with the help of following methods: setPageContext(): It is the first method which is invoked by the tag processor […]


Introduction to JSP custom tags

Introduction to JSP custom tags: Custom tags are application programmers’ defined actions which represent presentation logic as reusable components. The facility of defining custom tags makes the JSP extensible. To understand the use of custom tags, lets consider the following scenario. Let there be a web application in which 10 pages displays user data in […]


JSP page directive

JSP page directive: The page directive in JSP is used by programmers to get the structure of the auto generated servlet modified according to their requirements. It has following syntax: Commonly used attributes of the page directive are: 1. import: This attribute is used to get the specified packages imported in the auto generated servlet […]