- import.
- contentType.
- extends.
- info.
- buffer.
- language.
- isELIgnored.
- isThreadSafe.
Which attribute of page directive in JSP supports use of Expression Language?
JSP language
For this reason,
page directive
supports language attribute. By default, the value for this attribute is Java. It applies to all declarations, expressions, and scriptlets present under the files mentioned in an include directive.
What are the page directives in asp net?
- The Application Directive. The Application directive defines application-specific attributes. …
- The Assembly Directive. …
- The Control Directive. …
- The Implements Directive. …
- The Import Directive. …
- The Master Directive. …
- The MasterType Directive. …
- The OutputCache Directive.
Which attribute of the page directive lets you specify the packages that should be imported by the servlet into which the JSP page gets translated?
page Directive with
import attribute
.
Lets you specify the packages that should be imported by the servlet into which the JSP page gets translated. Generates import statements at top of servlet definition. Default imports: java.
What is the use of include attribute of page directive?
Include directive :
JSP include directive is used
to include other files into the current jsp page
. These files can be html files, other sp files etc.
What is the purpose of page directive isErrorPage?
isErrorPage:
This attribute is used to
specify whether the current JSP page can be used as an error page for another JSP page
. If value of isErrorPage is true it means that the page can be used for exception handling for another page.
What happens when buffer is set to a value None?
You may code value of “none” to specify no buffering so that the servlet output is immediately directed to the response object or you
may code a maximum buffer size in kilobytes
, which directs the servlet to write to the buffer before writing to the response object.
Which is not a directive?
9. Which is not a directive? Explanation:
Export
is not a directive.
What is JSP life cycle?
A JSP life cycle is defined as
the process from its creation till the destruction
. This is similar to a servlet life cycle with an additional step which is required to compile a JSP into servlet.
What is JSP Scriptlet?
A JSP scriptlet is
used to contain any code fragment that is valid for the scripting language used in a page
. The syntax for a scriptlet is as follows: <% scripting-language-statements %>
What is a page directive?
The page directive is
used to provide instructions to the container that pertain to the current JSP page
. You may code the page directives anywhere in your JSP page. By convention, page directives are coded at the top of the JSP page.
What is ASP.NET page life cycle?
When an ASP.NET page runs, the page goes through a life cycle in which
it performs a series of processing steps
. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and rendering.
What level master page can be applied?
You can attach content pages to a master page at
three levels
: At the page level You can use a page directive in each content page to bind it to a master page, as in the following code example. At the application level By making a setting in the pages element of the application’s configuration file (Web.
What is Servlet life cycle?
A servlet life cycle can be defined as
the entire process from its creation till the destruction
. … The servlet is initialized by calling the init() method. The servlet calls service() method to process a client’s request. The servlet is terminated by calling the destroy() method.
Which one is not a JSP directive?
Explanation:
command directive
is not a directive in JSP.
Which of the following attributes is used to mark a page as error processing page?
Answer:
page directive attributes
are used to mark a page as an error page where exception are displayed.