Hi,
I am very new to
JSF and I am trying to do the following:
1> login.jsp - get username and password and redirecto welcome.jsp on success
on failure return to login.jsp but with error message on the screen..
2> when the user tries to open to some other page which requires user to be logged in before opening it, in this case how would I check whether user has logged in or not.. I know i can get the user bean information from the session or face context.. but I don't want to put this check in all my
jsp pages.. I am looking for a cleaner way..
I have a userbean class with a login function which gets called when user press login button. It return success/failure.
I am aware that it is possible to check the login at the validation stage itself.. but I am not sure of the right approach.. Please help!
Thanks
alot!