Hello, I'm designing a jsp page for login where users will be taken from db2. I'll try to explain on an example; I need dynamic tables in my jsp which will automatically fill according to users roles. For example there will be an administrator who has all write/read permissions, Students will read their marks, etc.. and will write for changing their passwords. Teachers will see all the students and have write permissions on lesson...
Basically its like I explained on the above example. I need to use schemas I guess and groups for user roles, but how can I get this roles according to user (and their ID's; ex: where student_id = "...") in a jsp page and get the tables with read or/and write rights. Thanks in advance...