Which tag in the jsp is used to define the error page.
-
error-page
-
exception-type
-
location
-
None of the above
The 'error-page' tag in web.xml is used to define error pages for JSP/servlet applications. It maps error codes or exception types to specific location URLs where error handling pages reside. The other options are sub-elements within error-page configuration, not the defining tag itself.
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.