Multiple choice technology programming languages

. Which are mandatory elements of the web-resouce-collection element?

  1. 1) web-resource-name

  2. 2) url-pattern

  3. 3) http-method

  4. 4) auth-constraint

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

The web-resource-collection element in web.xml requires web-resource-name (to identify the collection) and url-pattern (to specify which URLs are protected). The http-method element is optional - if omitted, it applies to all HTTP methods. The auth-constraint element is separate from web-resource-collection. Options A and B are correct.