Example & Tutorial understanding programming in easy ways.

What is directives tag in jsp?.

JSP directives are used to set global values like class declaration, content type etc have scope for entire JSP file.
JSP Directives are used to give special instruction to container for translation of JSP to Servlet code. JSP Directives are placed between <%@ %>. There are 3 directives that can be used in JSP listed below.

a)Page directive:

Page directive is used to define page attributes.

b)Include directive:

This directive is used to include content of the file in the current .jsp page.

c)Taglib directive:

Taglib, JSP tag extension, provides a way of encapsulating reusable functionality on JSP page.

Every directive has a set of attributes to provide specific type of instructions. So usually a JSP directive will look like <%@ directive attribute="value" %>.


Read More →
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!