Elements of the Login Application
- Pages defining login and welcome screens:
- A bean that manages user data (username and password). This bean
is defined by UserBean.java
- A configuration file listing bean resources and navigation rules, by
default, faces-config.xml
- Miscellaneous files required by the Servlet container:
- web.xml: configures Servlets
- index.html: redirects user to login page
More advanced JSF applications share this structure but may have additional
Java classes defining:
- Event handlers
- Validators
- Custom components