A popular Ajax framework and its companion widget library contain several hundreds of files of different types (.js, .ess, .html). Your company has mandated that all its web applications use only specific versions of this framework approved by IT and repackaged internally as jar files. Furthermore, web applications should only include the entire jar, without subsetting or modification. Where should the framework’s files be placed inside a jar file to enable this kind of reuse?
A.
under resources
B.
under META-INF/resources
C.
under META-INF/web-contents
D.
under WEB-INF/resources
Explanation:
Reference:
http://ocpsoft.com/opensource/create-common-facelets-jar/(check the box with the update)
The Correct answer is : B
I think is D.
Resouce could be “lib folder”. It is one way to see it.
It’s B, as for 4.6 in Servlet 3.0 spec:
The ServletContext interface provides direct access only to the hierarchy of static
content documents […] take a String with a leading
“/” as an argument that gives the path of the resource relative to the root of the
context or relative to the META-INF/resources directory of a JAR file inside the
web application’s WEB-INF/lib directory.
META-INF/Resources is the place in the JAR to place the resources and WEB-INF/lib is the place in Root project to place these JAR files.