Simple Login using JSF
just go to /secured/welcome.xhtml and you will be directed to login.xhtml. You can login with username:salih password:123456 combination. After you logged in you can access to the pages under secured directory. If you try to go to the index.xhtml this time your username will be shown instead of a login form.