Answer Posted / dhruba
Directive tag:
The directive tag gives special information about the page
to JSP Engine. This changes the way JSP Engine processes
the page. Using directive tag, user can import packages,
define error handling pages or session information of JSP
page.
General notation of directive tag is as follows:
There are three types of directive tag.
page
Include
Tag Lib
Syntax and usage of directive tag
page directive:
General syntax for the page directive is
<%@ page optional attribute ... %>
There are many optional attributes available for page
directive. Each of these attributes are used to give
special processing information to the JSP Engine changing
the way the JSP Engine processes the page. Some of the
optional attributes available for page directive are:
language
extends
import
session
buffer
autoFlush
isThreadSafe
info
errorPage
IsErrorPage
contentType
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between servletcontext and pagecontext?
Differentiate between jsp scriptlet tag and declaration tag.
How is scripting disabled?
How we can use javascript with jsp pages?
Explain jsp:plugin action?
Which package does jsp api consist of?
Why jsp and servlets are used?
How can I override the jspinit() method within a jsp page?
What do you mean by custom tag in jsp?
What is a scriptlet in jsp and what is its syntax?
Is there a way to reference the "this" variable within a jsp page?
What is the difference between jsp and thymeleaf?
Give an example where you need jsp custom tag?
What is an expression language?
What is content type in jsp?