file « Servlet « JSF Q&A

1. Explicit directory for JSF template files

I'm just getting into Seam/JSF development and looking for a way to lookup the XHTML template files from a different location. When configuring the JSF application like this:

  <servlet-name>Faces Servlet</servlet-name>

2. How to set JSF2 with faces servlet mapping?

I have a simple JSF2 app using Facelets. My web.xml is set as follows:-

<servlet-name>Faces Servlet</servlet-name>
I want to set the app to default to the welcome page which is /pages/login.xhtml. I ...

3. jsf welcome file not recognized

accessing http://localhost:8080/basicSetup/faces/index.xhtml works, with the output of :

Hello World ! Albert Kam
but accessing http://localhost:8080/basicSetup shows
Hello World ! #{myBean.value}
meaning that the welcome file is not rendered as ...