G
gbattine
Hi guys,
i need your help.
I'm developing my first jsf application but i've no much experience
with servlets and i'm trying to learn..
This is my question:
i've a login page in which a user try to authenticate its
data,inserting username and password.
I've a loginBean that makes authentication logic and sends user to menu
page of application,if data are correct...
i need to create a servlet that stores into a session username and
password of user.
This servlet has to do this:
redirects user to login page if session expires
check when user login if another user is navigating in the application
with same login data
protect the access to each page checking if there is a user in the
session.
I thinks it can be a common problem of web application,i hope someone
can give me a working example to study..if there are not working
example can someone help me with simple code to understand?I'm learning
java and jsf,but i've some difficulty with servlets,please help me....
Excuse my poor english....i hope you help me,THANKS
i need your help.
I'm developing my first jsf application but i've no much experience
with servlets and i'm trying to learn..
This is my question:
i've a login page in which a user try to authenticate its
data,inserting username and password.
I've a loginBean that makes authentication logic and sends user to menu
page of application,if data are correct...
i need to create a servlet that stores into a session username and
password of user.
This servlet has to do this:
redirects user to login page if session expires
check when user login if another user is navigating in the application
with same login data
protect the access to each page checking if there is a user in the
session.
I thinks it can be a common problem of web application,i hope someone
can give me a working example to study..if there are not working
example can someone help me with simple code to understand?I'm learning
java and jsf,but i've some difficulty with servlets,please help me....
Excuse my poor english....i hope you help me,THANKS