I am using Glassfish 3.1 and all the reference implementations and I got a question on how I can get Glassfish to see the index.xhtml and render it automatically through JSF, instead of making a index.html and then redirect to index.jsf (which is index.xhtml)? I am just jusing the default mapping in Glassfish (has not added mappings in web.xml) so I can write .jsf in the url field and the xhtml webpages is rendered.
Making a index.html with this: <meta http-equiv="refresh" content="0; url=index.jsf" /> in every new folder is rather cumbersome and it is probably better ways of doing it.
Do the following in the web.xml:
It depends on what
url-patterntheFaces Servletis mapped to and whether the request-url matches that pattern and if yes then it invokes theFaces Servletand the request will be processed by theFaces Servlet.