Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EPractice Lab mock exam 4 question 32

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Select the folder to store tag library files
a. WEB-INF/public_html
b. WEB-INF/classes
c. WEB-INF
d. WEB-INF/lib
Given answer is: D.
Explanation:
The top-level directory of a WAR is the document root of the application. The document root contains a subdirectory called WEB-INF, which contains the following files and directories:
/WEB-INF/web.xml dd.
/WEB-INF/classes directory for servlet and utility classes. The classes in this directory are available to the application class loader.
/WEB-INF/lib directory for JAR files. These files contain servlets, beans and other utility classes like tag libraries.


I think the given answers can be b and d.
If the tag library files are in jar, they should be in WEB-INF/lib.
But if the tag library files not in jar, they can be put in WEB-INF/classes.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree.

This question is ambigious though. A Tag library consists of a Tag Library Description (TLD) file and of Tag Handler classes. The question seems to be asking about the tag handler classes, but it is not clear.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic