What are JSP directives, page directives and include directives?

What are JSP directives, page directives and include directives?

what are jsp directives? and what are page directives? and what are include directives? can you explain taglib directives?

View Answers

May 7, 2012 at 5:06 PM

JSP directives

JSP directives do not produce any output. They are used to set global values like classdeclaration, content type etc. Directives have scope for entire JSP file. They start with<%@ and ends with %>. There are three main directives that can be used in JSP:-

page directive: Page directive is used to define page attributes the JSP file.

include directive: The include directive informs the JSP engine to include the content of the resource in the current JSP page.

taglib directive: Taglib are also termed as JSP tag extensions. They provide a way of encapsulating reusablefunctionality on JSP pages.

Ads









Related Tutorials/Questions & Answers:
JSPs : include Directives
directives
Advertisements
JSPs : Page Directives
JSP Directives and HTML tags
JSPs : Directives
JSPs : taglib Directives
JSP Tutorial
JSP
ModuleNotFoundError: No module named 'pygal_sphinx_directives'
ModuleNotFoundError: No module named 'pygal_sphinx_directives'
The Include Directive in JSP Page
How To Include Two Jsp page in another jsp page?
Include Static HTML Page in JSP
include a delete option in every row of table in a JSP page
JSP include
include a jsp file
JSP Include Param
Unable to execute JSP page
Dynamic include jsp
Introduction to JSP tags JSP Directives
JSP Include File
JSP Include jsp
jsp using include & with mysql
The Page Directive in JSP Page
jsp:include action tag
Passing Parameter with <jsp: include>
What does core Java include?
Include directive vs Include Action
how to include a java class in jsp - JSP-Servlet
What is JSP is in layman's terms?
JSP Components

Ads