G
gk
i have a database. this database has a table. this table has columns
{userid,role}
example :
userid role
====== ====
issac admin
burk support
chelly operator
// so on
i have few JSP pages.
report.jsp
update.jsp
insert.jsp
support.jsp
login.jsp
intially, a user will get login.jsp where he has to put the user id
and password.
if the user has role "admin" , then he can access all the above JSP
pages.
if the user has role "support" , then he can access only the
support.jsp, no other page he can access.
if the user has role "operator" , then he can access only the
update.jsp,insert.jsp no other page he can access.
Question :
As you see, this is a role based access.
How do i code this role based access ?
{userid,role}
example :
userid role
====== ====
issac admin
burk support
chelly operator
// so on
i have few JSP pages.
report.jsp
update.jsp
insert.jsp
support.jsp
login.jsp
intially, a user will get login.jsp where he has to put the user id
and password.
if the user has role "admin" , then he can access all the above JSP
pages.
if the user has role "support" , then he can access only the
support.jsp, no other page he can access.
if the user has role "operator" , then he can access only the
update.jsp,insert.jsp no other page he can access.
Question :
As you see, this is a role based access.
How do i code this role based access ?