This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Users Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Users Authentication" Watch "Users Authentication" New topic
Author

Users Authentication

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have four roles; administrator, contributor, editor, and advisor. All registered members fall into one or more of these four roles and all registered members are kept in a database.
1. Administrators (least restrictive) can access all web resources.
2. Contributors can access the "edit" and "delete" functions as well as the "view" function.
3. editors and advisors (most restrictive) can only access the "view" function.
How do I prepare my web.xml file? For example:

Thank you very much in advance.
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Have you looked at Web-Tier Security in the J2EE tutorial recently?
The DTD for web.xml and the servlet specification also have some comments that are helpful.
Did this help?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Users Authentication
 
Similar Threads
Marcus Green Quiz 1 - Mock Exam Question Doubt
Which one is first? Authentication/Authorisation
web.xml <security-constraint> accept any role
Form authentication when not in a role
related to auth constraint