Multiple choice general knowledge science & technology

Which of the following tag in web.xml ,indicates a resource to be invoked for a particular error code?

  1. <error-page>

  2. <error-type>

  3. <error>

  4. <error-resource>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The tag in web.xml specifies error handling for specific HTTP error codes or Java exception types. It contains or and pointing to the error page resource. Tags like , , and don't exist in the servlet specification.