Multiple choice technology programming languages

Which is true about tag files

  1. A tag file may be placed in any subdirectory of WEB-INF

  2. A tag file may NOT be placed in a JAR file in the WEB-INF/lib directory

  3. A tag file must have the file extension of .tag or .tagx

  4. A TLD file must be used to map the symbolic tag name to the actual tag file

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

Under the JSP specification, tag files must end with either .tag or .tagx extensions. Distractors are incorrect because tag files are restricted to /WEB-INF/tags/ or /META-INF/tags/ inside JARs, can indeed be packaged in JAR files, and do not strictly require a TLD for mapping.