File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

user authentication

smyle khanna
Ranch Hand

Joined: Jan 14, 2004
Posts: 54
i have 2 jsp 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

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

Joined: Jan 10, 2002
Posts: 63858


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.

JSP Forum Bartender

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: user authentication
It's not a secret anymore!