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.
hi in my project i want to set the user roles i have admin, superuser, user where user can simply view data, superuser can modify data, admin can add users, in my web.xml I added [code] <security-constraint> <web-resource-collection> <web-resource-name>user</web-resource-name> <url-pattern>/user/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>user</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint>
But when i log in as Ajman i should see the page ViewPlotInformation but it not showing me this page its showing me the whole application. Can anyone help me out in this, i am confused with this access roles.
I'm not quite clear on what you're asking. The user/role/login stuff does not determine which page is shown to a user. All it does it to determine whether a particular page -which the user is trying to access- should or should not be shown to him. Maybe there's something screwy about the logic that determines which page to show?