Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8881059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:16:19+00:00 2026-06-14T20:16:19+00:00

When I configure the FacesServlet in my web.xml , where does it search for

  • 0

When I configure the FacesServlet in my web.xml, where does it search for *.xhtml facelets? Only in App-Root?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:16:20+00:00Added an answer on June 14, 2026 at 8:16 pm

    They’re by default scanned in the web root folder of the WAR and in the /META-INF/resources folder of all JARs included in the /WEB-INF/lib of the WAR. You can control this scanning algorithm with a custom ResourceResolver. 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):

    public class MyResourceResolver extends ResourceResolver {
    
        private ResourceResolver parent;
    
        public MyResourceResolver(ResourceResolver parent) {
            this.parent = parent;
        }
    
        @Override
        public URL resolveUrl(String path) {
            URL url = parent.resolveUrl(path); // Resolves from WAR.
    
            if (url == null) {
                url = new File("/some/folder", path).toURI().toURL();
            }
    
            return url;
        }
    
    }
    

    As to placing Facelets files in /WEB-INF folder, 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:

    • Obtaining Facelets templates/files from an external filesystem or database
    • Which XHTML files do I need to put in /WEB-INF and which not?
    • Structure for multiple JSF projects with shared code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My configuration: app.configure(function(){ app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.bodyParser()); app.use(express.cookieParser()); app.use(express.session({ secret:
I'm trying to configure a splashscreen for a landscape mode ipad app using phonegap
I configure my web application to use SSL using my own self signed certificate.
I configure a flow in mule-config.xml based on the documentation( click here ). Here
I am trying to configure Apache on my Linux system, but it does not
How can I configure hibernate sessionFactory in Spring such that it uses the hibernate.cfg.xml
How do I configure CFWheels to display the following XML at http://mydomain.com/sitemap.xml ? <?xml
Most tutorials propose a default JSF configuration similar to the following web.xml: <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
I'm trying to configure IIS to parse a .xml file just like it would
How do you configure the views to able to reference a namespace like System.Web.Mvc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.