JSP

It contains of blogs of jsp.

JSP directives

What is a directive? A directive in JSP, represents an instruction to the translator to modify the structure of the auto generated servlet at the time of translation on behalf of the programmer. You have been already told that for each JSP, a servlet class is auto generated. Sometimes modifications are required in this servlet […]


JSP include directive

JSP include directive? include directive in JSP, is used by application programmers to get the contents of a page included to the current JSP at the time of translation. It has following syntax: You may recall that <jsp:include …/> action also has the same functionality. Now you should be wondering why are both the action […]


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 […]


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 […]


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 […]