Directives in jsp

by Nirmala 2008-04-30 17:28:16

Hi..

There are three type of directives in jsp.
(1)Page directive
(2)Include directive
(3)Taglib directive

Page directive is used to send request to another page.Used for importing packages,Specifying session,etc.
Syntax
<%@page import="packagename" %>
<%@page session="true/false" %>
<%@page isThreadSafe="true/false" %>
<%@page isErrorPage="true/false" %>
<%@page errorpage="" %>
<%@page extends="" %>

Include directive is used to include any type of files.
Syntax
<%@ include file="filename" %>

Taglib directive is used to specify the userdefined tags.



Tagged in:

2348
like
1
dislike
0
mail
flag

You must LOGIN to add comments