Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractice Lab mock exam 4 question 32  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1510
9
  • 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
Posts: 2920
205
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!