I am developing a project using jsf
and Primefaces
.
In that,I moved all my pages in to WEB-INF folder including my welcomePage.xhtml
for prevent pages from the direct access in URL
.
I was set that welcomePage.xhtml
as <welcome-file>
in web.xml
:
<welcome-file-list>
<welcome-file>welcomePage.xhtml</welcome-file>
</welcome-file-list>
while running my application occured an error HTTP Status 404
.
I do not know why its does not work.but its work when the welcomePage.xhml
is in outside of the WEB-INF
.
Any idea?