I've created an JSF Project from my Eclipse with JBoss Tools. Now I have the structure:
MyProjectFolder
⌊ WebContent
⌊ WEB-INF
| ⌊ lib
| ⌊ faces-config.xml
| ⌊ web.xml
⌊ META-INF
⌊ index.xhtml
My web.xml maps the following extensions to the FacesServlet: /faces/*
, *.jsf
, *.faces
When I now try to access /faces/index.xhtml
, index.jsf
and index.faces
I get a 404 not found error. Only when I access index.xhtml directly I get a page but without jsf-content (what is clear for me).
So my question is now how the FacesServlet resolves the Faclet-Filename and path from my URL-Params? And how can I ensure, that it is not possible to access the index.xhtml directly?
PS I know the solution to add a servlet-mapping for *.xhtml but I think there should be an alternative.
Regards!