Question:

Which JSP directive has errorPage, buffer, autoFlush attributes?

Show Hint

Attributes such as errorPage, buffer, autoFlush and contentType belong to the JSP page directive.
Updated On: Jun 25, 2026
  • page
  • include
  • taglib
  • exception
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: JSP directives provide global information about an entire JSP page and affect the overall translation of the JSP into a servlet. The three JSP directives are:
• page
• include
• taglib

Step 1:
Understand the page directive.
The page directive is used to define page-level attributes and settings. Syntax: \[ \texttt{} \]

Step 2:
Common attributes of page directive.
The page directive supports attributes such as:
• errorPage
• isErrorPage
• buffer
• autoFlush
• language
• contentType

Step 3:
Analyze the options.
The include directive is used to include files. The taglib directive is used to declare custom tag libraries. Only the page directive contains the attributes mentioned in the question.

Step 4:
Select the answer.
\[ \boxed{\text{page}} \]
Was this answer helpful?
0
0