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

What is session management in jsp?

517


how can i update the marque in jsp without changing the sourse code

2201


What are the jsp elements?

460


Explain jsp action elements or action tags?

491


Explain the steps for creating custom tags in jsp?

481






What is a session in web?

529


What are advantages of jsp over asp, php, pure servlets and others?

483


What happens when a page is statically included in another jsp page?

561


When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]

1738


What does jsp mean in text?

476


What is tag file in jsp?

518


Is jsp server side scripting language?

581


What are the lifecycle phases of a jsp?

558


Is jsp front end or backend?

503


What is jsp scriptlet tag used for?

499