Roles based access
hi Friends
Im creating a web based application where users of different rules can login into the application. now
Problem 1
On their role i want to give them access to certain links. So here e.g. theres some jsps where there are 3 buttons. now user A with role R1 should access only button 1 & 2 while user B with role R2 can access button 2 & 3.
my question is that here im checking user's role and privileges everytime while loading a jsp. is this way correct or theres some other standard to implement it.
One way is role based menu access that i know. any other if know pls help or at least redirect me to some page...
Thanks ...

