[Logo]
Forums Register Login
Login page using sql database in servlets
Hi,
I want to create a login page. the website contains three types of user: Students, faculty and admin. Based on their role the appropriate home page has to be shown. Anyone help me for doing this.
(1 like)
Where's your code? What problem are you having with it?
I want some idea to implement.
you can retreive role on the basis of username provided by user and then check it with if..else and then forward the request to respective pages using request dispatcher..try this..
 
Irfan Zubair wrote:Hi,
I want to create a login page. the website contains three types of user: Students, faculty and admin. Based on their role the appropriate home page has to be shown. Anyone help me for doing this.


We are not here to do your homework but surely to help you do it. You have to decide what and how you will do it. And if you face any issues and want some help with that decision (after that decision has been taken) come to us.

Edit: After Bear's comment!
(1 like)
 
Palak Mathur wrote:We are not here to help you do your homework.

Actually, what I believe Palak Mathur really meant was: we are here to help you do your homework, but not to do it for you.
 
Bear Bibeault wrote:
Palak Mathur wrote:We are not here to help you do your homework.

Actually, what I believe Palak Mathur really meant was: we are here to help you do your homework, but not to do it for you.


Yes!! I wanted to say that!!
(1 like)
Use JDBC Realm.
I am not asking to do it for me. I just want some better ideas to do it.
 
Irfan Zubair wrote:I am not asking to do it for me. I just want some better ideas to do it.

Hi Irfan,

If you will tell us what is in your mind then we can tell you if we have a better idea.
Hi Palak Mathur,
Thanks for your support. I'll post the code after completing it.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Dec 16, 2017 09:55:21.