This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 4646

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

You, the poster, can and should delete one.
It is sorta covered in the JavaRanch Style Guide.
subject: controlling access between different users
Similar Threads
limiting access using ldap??
applet info sharing.
J2ME Problem
jdbcRealm. Suddenly can't get access
IE submit duplicated request (randomly) and Weblogic throws "Connection reset by peer..." exception