File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Users Authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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
related to auth constraint
Form authentication when not in a role
Which one is first? Authentication/Authorisation
Marcus Green Quiz 1 - Mock Exam Question Doubt
web.xml <security-constraint> accept any role