This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Security and the fly likes controlling access between different users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "controlling access between different users" Watch "controlling access between different users" New topic

controlling access between different users

mani sankar

Joined: May 23, 2008
Posts: 2
I have a web application and authentication is done using LDAP server.
i have a 2 userid's(say:full_page and half_page)...

when i login with userid:full_page I get a jsp page(say..hello.jsp)(say hello.jsp has 10 links in it)

when i login with userid:half_page I get the same jsp page(i.e hello.jsp) but i have all the links disabled and the backround colour of the page is different)

How is this done?? having the same url .... but diff users are given diff type of access??
Also if there are numbers from 1 to 1000 in a database..say each number is associated with employee information..and in my app i have a field which has to type a number and search for a number..

When i search for a number by logging in with full_page,I got the result for nos from 1 to 1000..But when I tried to do the same by logging with half_page,..I can access only certain group of numbers.if i try to search for any other...i am getting a message "u cant see associated information"

Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Is there some reason you posted the same question twice, with slightly different titles?

You, the poster, can and should delete one.
I agree. Here's the link:
subject: controlling access between different users
It's not a secret anymore!