Servlet Configuration
- The underlying technology for JSF is Servlets
- JSF framework provides a controlling Servlet that must be configured in
the file web.xml
- Fortunately, can use same file for most JSF web applications:
web.xml
- The servlet-mapping element insures that JSF page requests are
processed by the controlling Servlet called Faces Servlet
- The welcome-file element insures that index.html is
initially loaded
- Sequence of events:
- Browser requests http://redrock.d.umn.edu:29104/login/
- Web server loads http://redrock.d.umn.edu:29104/login/index.html
- index.html redirects to index.faces
- Controlling Servlet strips ".faces" and loads
index.jsp
- User clicks Login and controlling Servlet navigates to
welcome.jsp