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.

Related Tutorials/Questions & Answers:
JSPs : include Directives
JSP Directives Tag
JSPs : Page Directives
JSP Directives and HTML tags
JSPs : Directives
JSPs : taglib Directives
jsp:include page=.. and include file = ...
ModuleNotFoundError: No module named 'pygal_sphinx_directives'
ModuleNotFoundError: No module named 'pygal_sphinx_directives'
JSP Tutorial
Jsp include page problem
jsp - JSP-Interview Questions
The Include Directive in JSP Page
How To Include Two Jsp page in another jsp page?
Include Static HTML Page in JSP
Include static files within a JSP page
include a delete option in every row of table in a JSP page
difference between <%@ include ...> and <jsp:include>
Introduction to JSP tags JSP Directives
JSP include directive tag
JSP include directive tag
JSP include
JSP Include Param
jsp include action tag
include a jsp file
Dynamic include jsp
JSP Include File
Unable to execute JSP page
What are the differences between require and include, include_once?
jsp - JSP-Servlet
JSP Include jsp
jsp using include & with mysql
The Page Directive in JSP Page
jsp:include action tag
What does core Java include?
Passing Parameter with <jsp: include>
flush attribute in jsp:include tag - JSP-Servlet
Include directive vs Include Action
The "include" directive of JSP
how to include a java class in jsp - JSP-Servlet
What’s the difference between include and require?
JSP Components
Creating dynamic jsp file in java file to include another jsp file
JSP include directive tag syntax and example
What is JSP is in layman's terms?
Java to create table in jsp file that include other jsp file
can we use include files in struts.....? - Struts
how to include an html page inside a tab