In JSF I can map the Faces Servlet to various URL patterns. E.g. to *.xhtml
.
What I want however is map the Faces Servlet to no extension. Meaning, if I have a page customers.xhtml
in my web root, I would like to request this using http://example.com/customers
.
I looked at the question How do I configure JSF url mappings without file extensions? and this works to some degree, but it requires me to map each and every file I have individually (correct me if I'm wrong).
How can I map all my .xhtml
files in one go to the Faces Servlet without having to map them individually?