top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are Directives ? What are the different types of Directives available in JSP ?

+1 vote
347 views
What are Directives ? What are the different types of Directives available in JSP ?
posted Jan 24, 2015 by Dominic

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

Directives are instructions that are processed by the JSP engine, when the page is compiled to a servlet. Directives are used to set page-level instructions, insert data from external files, and specify custom tag libraries. Directives are defined between < %@ and % >.

The different types of directives are shown below:

Include directive: it is used to include a file and merges the content of the file with the current page.
Page directive: it is used to define specific attributes in the JSP page, like error page and buffer.
Taglib: it is used to declare a custom tag library which is used in the page.

answer Jan 27, 2015 by Karthick.c
...