The source code for the email.xhtml file is as follows:
The source code for emuserpage.xhtml is as follows:
There is also a default index.xhtml page that NetBeans creates. The code for this is as follows:
The index.xhtml page is the only thing that shows when deploying this application to glassfish.
If I enter the URL suggested in the tutorial: http://localhost:8080/application-name/emuserpage.xhtml I receive a 404 error.
When I go to http://localhost:8080/FaceletsCompositeExample/ I see the index.xhtml page.
The web.xml, deployment descriptor, for this project is as follows:
Is there a problem with the <servlet-mapping> section of the deployment descriptor? From my understanding the current mapping says to display things that are in the "faces" directory or something. I am not sure how the index.xhtml file is in the "faces" directory because in the project structure this file is under "Web Pages". Maybe the <welcome-file>faces/index.html</welcome-file> creates some imaginary (looking for a better word) directory structure and this is why the index.xhtml page shows up?
Does anyone know where I went wrong with this example?
Thank-you for reading this.
This looks like a job for .... legal tender! It says so right in this tiny ad:
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02