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 ...

[687 byte] By [Neo2001a] at [2007-11-27 0:41:26]
# 1
can u send ur code the way u r doing...it ll clear all the confusion...
satyabrataa at 2007-7-11 22:55:02 > top of Java-index,Security,Other Security APIs, Tools, and Issues...