Which tag in the jsp is used to define the error page.

  1. error-page

  2. exception-type

  3. location

  4. None of the above


Correct Option: A

AI Explanation

To answer this question, you need to understand how error pages are defined in JSP.

In JSP, the `` tag is used to define the error page. This tag is used to handle errors or exceptions that occur during the execution of a JSP page.

Option A) error-page - This option is correct because the `` tag is used to define the error page in JSP.

Option B) exception-type - This option is incorrect because there is no specific tag named `` used to define the error page in JSP.

Option C) location - This option is incorrect because although the tag is used in the tag to specify the location of the error page, it is not the tag used to define the error page itself.

Option D) None of the above - This option is incorrect because the correct answer is option A, which is "error-page".

The correct answer is option A. This option is correct because the `` tag is used to define the error page in JSP.

Find more quizzes: