Creating an JSF project for execution on Glassfish v3

Create a dynamic web project.
Create files inside Webcontent, as a jsp file, then choose type xhtml with xhml syntax. Change the extention to .xhtml.
Then on web.xml insert the server mapping:

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>


Add also the line on welcome file list: <welcome-file>index.jsf</welcome-file>
Posted in PhD.

Leave a comment