When I configure the FacesServlet in my web.xml, where does it search for *.xhtml facelets? Only in App-Root?
When I configure the FacesServlet in my web.xml , where does it search for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They’re by default scanned in the web root folder of the WAR and in the
/META-INF/resourcesfolder of all JARs included in the/WEB-INF/libof the WAR. You can control this scanning algorithm with a customResourceResolver. Here’s a (relatively foolish) example which scans for an additional location on local disk file system as well when nothing is found in WAR (nor in JARs in its/WEB-INF/lib):As to placing Facelets files in
/WEB-INFfolder, you should only put Facelets files in there which are not supposed to be publicly accessible, such as template files, tag files, include files, etc. Files which are supposed to be publicly accessible should not be placed in there, such as template clients (the top level views).See also: