Multiple choice technology web technology

Which two are true about the JSTL core iteration custom tags?

  1. It may iterate over arrays, collections, maps and strings.

  2. The body of the tag may contain EL code, but not scripting code.

  3. When looping over collections, a loop status object may be used in the tag body.

  4. It may iterate over a map, but only the key of the mapping may be used in the tag body.

  5. When looping over integers (for example begin1='1' end='10'), a loop status object may not be used in the tag body.

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

JSTL iteration tags like `can iterate over arrays, collections, maps, and strings. When looping over collections, a loop status object (via thevarStatus` attribute) can be used to track the current index and status.