Which of the following values of tagdir attribute of the taglib directive is invalid?
Choice B is correct
The "tagdir" attribute is used to specify the directory where the tag extensions are installed.
The valid values are /WEB-INF/tags/ directory or any of its subdirectory.
If any other value is given, a compilation error will occur. Thus, choices A and C are valid and hence incorrect.
tagdir - Indicates this prefix is to be used to identify tag extensions installed in the /WEB-INF/tags/ directory or a subdirectory. An implicit tag library descriptor is used (see Section JSP.8.4 for details). A translation error must occur if the value does not start with /WEB-INF/tags/. A translation error must occur if the value does not point to a directory that exists. A translation error must occur if used in conjunction with the uri attribute.
Post by:Himai Minh
, Ranch Hand
In HF book, it say tag files have to be in /WEB-INF/tags or subdirectory of it.
So, putting a tag file under other directory is not considered as a tag file.
Post by:Frits Walraven
, Saloon Keeper
Yes, you are right (I didn't see invalid in the problem statement).