What are actions and directives in jsp?

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


Please Help Members By Posting Answers For Below Questions

How to access java variable in jsp?

509


Differentiate between response.sendredirect(url) and ?

653


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

566


how can i add properties in dynamic text fields using .js file?

1746


What is expression language injection?

514






How to get value from java to jsp page?

513


What is jsp expression?

517


Why do we use jsp?

503


What are the different types of directives available in jsp?

524


Can we call servlet from jsp?

479


How to configure init parameters for jsp?

490


What is request getcontextpath ()?

514


Is jsp server side or client side?

495


What is c tag in jsp?

490


What is session scope?

513