Raj Singh
JSP page directive tag syntax
1 Answer(s)      4 years and 7 months ago
Posted in : JSP-Interview Questions

Descibe the syntax of the page directive with example In JSP.

Advertisement
View Answers

October 25, 2010 at 12:35 PM


Hi,

The JSP page directive tag syntax is:

   <%@ page attributeName="values" %>

The JSP page directive tag examples are:

  <%@ page import = "java.util.*" %>
  <%@ page extends = "package.class"%>
  <%@ page language = "java" %>

Thanks










Related Tutorials/Questions & Answers:
JSP page directive tag syntax
JSP page directive tag syntax  Descibe the syntax of the page directive with example In JSP.   Hi, The JSP page directive tag syntax is: <%@ page attributeName="values" %> The JSP page directive tag
JSP include directive tag syntax and example
JSP include directive tag syntax and example  The syntax and example of the JSP include directive tag.   Hi, The syntax of the JSP include... of the JSP include directive tag is: <%@include file="filename" /> Thanks
Advertisements
JSP page directive tag
JSP page directive tag  What is page directive tag in JSP?.   Hi, The answer given below: The page directive applies to an entire JSP... unit. or Defines attributes that apply to an entire JSP page. Thanks
JSP page directive tag atributes
JSP page directive tag atributes  The list of the page directive tag attributes in the JSP.   Hi, The list of the JSP page directive tag attributes is: language extends import session info errorPage
JSP Directive Tag
JSP Directive Tag  What is JSP Directive tag?   Hi, The answer is: The directive tag gives special information about the JSP Engine... packages, specifying the error handling page or to handle sessionin a JSP page. Thanks
JSP tag lib directive
JSP tag lib directive   What is tag lib directive in the JSP?   Hi, The answer is: Defines a tag library and prefix for the custom tags used in the JSP page. Thanks
JSP include directive tag
JSP include directive tag  What is include directive tag in JSP
JSP include directive tag
JSP include directive tag  What is include directive tag in JSP?   Hi, The JSP include directive includes a static file or sends a request to a dynamic file. or The JSP include directive is used to include
Type of JSP Directive Tag
Type of JSP Directive Tag  How many types of directive tag in the JSP?   Hi, The answer is given below: There are three types of directive tag. 1. page 2. Include 3. Tag Lib Thanks
JSP Page Directive
JSP Page Directive  Defined JSP Page Directive ?   The <%@ page %> directive applies to an entire JSP file and any of its static... information. Syntax for the page directive is : <%@ page optional attribute ... %>
The Page Directive in JSP Page
The Page Directive in JSP Page     ... and explanation one-by-one. This is the directive of the JSP page which defines...; %>. The space between the tag <%@ and %> before the page (directive
Directive Tags
information of JSP page. JSP defines three types of directive tag. page... for the JSP. Here is the syntax for the page directive: <%@ page optional...; The directive tag provides additional information to the JSP Engine regarding
The info Attribute of page Directive In JSP
The info Attribute of page Directive In JSP  ... about the info attribute of the page directive in JSP. This attribute simply...; Info Attibute of page directive in JSP. </title></head> <body>
The pageEncoding Attribute of page Directive In JSP
The pageEncoding Attribute of page Directive In JSP... illustration about the pageEncoding attribute of the page directive in JSP...;head><title>Example of pageEncoding attribute of page directive in JSP
The info Attribute of page Directive In JSP
The info Attribute of page Directive In JSP  ... about the info attribute of the page directive in JSP. This attribute simply...;title>Info Attibute of page directive in JSP.</title></head>
The "isThreadSafe" & "info" Attribute of JSP page directive
;info "attribute of JSP page directive. The "isThreadSafe" attribute of JSP page Directive   This attribute tells us whether thread... code. The "info" attribute of JSP page directive The "
The autoFlush Attribute of page Directive In JSP
The autoFlush Attribute of page Directive In JSP  ... the autoFlush attribute of the page directive in JSP. This is an boolean attribute... the syntaxes of the attribute of the page directive in JSP. In the following JSP
The buffer Attribute of page Directive In JSP
The buffer Attribute of page Directive In JSP  ... attribute of the page directive in JSP. This attribute sets the buffer size in kilobytes i.e. used by the out object to handle output generated by the JSP page
The Include Directive in JSP Page
The Include Directive in JSP Page   ... it in the JSP page. This directive includes the static file in a JSP page...: <html> <head><title>Include Directive JSP Page.<
The errorPage Attribute of page Directive In JSP
The errorPage Attribute of page Directive In JSP... the errorPage attribute of the page directive in JSP. This attribute sets a url... the url then the attribute refers to the current page of your JSP application
Extends Attribute of page Directive
Extends Attribute of page Directive   How use language extends in page directive ?   This is used to signify the fully qualified name... Servlet. Syntax : <%@ page extends = "package.class"%> <%@page import
The contentType Attribute of page Directive In JSP
The contentType Attribute of page Directive In JSP... illustration about the contentType attribute of the page directive in JSP...;<title>Example of contextType attribute of page directive in JSP.<
The session Attribute of page Directive In JSP
The session Attribute of page Directive In JSP  ... illustration of the session attribute of the page directive in JSP... attribute of the page directive of JSP. These are: sessionForm.jsp
The isThreadSafe Attribute of page Directive In JSP
The isThreadSafe Attribute of page Directive In JSP... a type of the attribute of the page directive in JSP as known as isThreadSafe... of isThreadSafe attribute of page directive in JSP.</title></head>
The isErrorPage Attribute of page Directive In JSP
The isErrorPage Attribute of page Directive In JSP... illustration of the isErrorPage attribute of the page directive in JSP by providing three JSP pages and it's output. This is a boolean attribute of the page
The 'buffer' and 'autoFlush' Attribute of JSP page directive
; attribute of JSP page directive. The 'buffer' attribute The out object  uses buffer to handle output generated by the JSP page...The 'buffer' and 'autoFlush' Attribute of  JSP page
Import attribute of page directive
in a JSP page or separate the Java packages with commas. Syntax : <%@ page...Import attribute of page directive   How use import attribute of page... in a java package into the current JSP page. If there are many Java packages
Language Attribute In Page Directive
, declarations, and expressions in the JSP page and any included files. Syntax of language attribute for page directive is : <%@ page language = "lang" %> <... in page directive ?   This attribute is used to denote the language used
Language' attribute of JSP page directive
about the general settings of a JSP page. The syntax of the page directive...'Language' attribute of JSP page directive In this Section , we... in JSP page. A directive element in a JSP page provides global information about
isThreadSafe attribute in the page directive
container sends client requests one at a time to the JSP page. Syntax : <... attribute in the page directive?   autoFlush means it will not clear... multiple, concurrent client requests to the JSP page. You must write code
errorPage attribute in the page directive
attribute in the page directive ?   If the programmer wants to place errors... in this attribute as errorPage. Syntax : <%@ page errorPage="relativeURL" %>   Hi, See example of JSP error page. Thanks