What are actions and directives in jsp?

Answers were Sorted based on User's Feedback



What are actions and directives in jsp?..

Answer / suresh sa

<%page %>
<%include %>
<%taglib %>

<% = %> -> Expression tag
<% %> -> Scriplet Tag for all java codes
<%! %> - > Declaration tag
<%-- %> -> Comment Tag

Is This Answer Correct ?    1 Yes 0 No

What are actions and directives in jsp?..

Answer / 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

What are actions and directives in jsp?..

Answer / kamma ashok

java server page contains three actions
1.try 2.catch 3.through.it contains two derivaties 1.poly
derivatives 2.post derivatives.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More JSP Interview Questions

A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?

0 Answers  


What are the benefits of pagecontext implicit object?

0 Answers  


What do you know about writing custom jsp tags?

0 Answers  


How can the output of JSP or servlet page be prevented from being cached by the browser?

0 Answers  


Explain scriptlet, expression and declaration in jsp.

0 Answers  






What is directive jsp?

0 Answers  


What are custom tags in jsp?

0 Answers  


What are the features of jsp?

0 Answers  


what is jsp? a technology ,a language or something else ?

3 Answers   Mastek,


how to connect the back end with Directive tag in jsp ...

1 Answers  


What is an expression language?

0 Answers  


Can we use methods in JSP? If so where the methods are stored in servlet class file?

6 Answers   Bodhtree, Cognizant, Persistent, TCS,


Categories