my dog learned polymorphism*
The moose likes JSP and the fly likes user authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "user authentication" Watch "user authentication" New topic
Author

user authentication

smyle khanna
Ranch Hand

Joined: Jan 14, 2004
Posts: 54
Hi...
i have 2 jsp pages..one is a login module n other main page.the user who logs in is divided into certain user groups n based on his group the main page which has certain menu's[which contains links to sum other jsp pages] designed in dhtml n javascript which must enable n disable according to the rights of tht particular group.these groups are dynamic n any number of user groups can b created.
how is it possible to restrict or disable the user from not accessing those menu's for which he has no rights?is there any method in jsp which can do this?
plz help

Smyle
michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
I have done this particular scenario b4. What i do is create a separate table with the group names and put in the tasks allowed. Tha task is either allowed or not allowed depending on u. I know there will be lots of repetition on the table but u hv the primary key as the groupname and the task allowed.

Another way is make a column in your user table and put for example integers 1110001010. First number indicating the first task, second indicate second task and so on. 1 is allowed and 0 not allowed.
These r jus some of my ideas
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

rollin,

JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "b4" instead of spelling out "before" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

thanks,
bear
JSP Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: user authentication