This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Filters Again...?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filters Again...??" Watch "Filters Again...??" New topic
Author

Filters Again...??

Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Hi all,
Want to discuss about Filters yet again, gone thru resources, but was unable to understand properly..
What I want to accomplish is...
1. A user is assigned some roles.
2. A login servlet is called on login.
3. It checks for the user & its role
4. According to the role assigned, they can view only specific resources.
5. If the user does not exists, they are taken back to the login form.
The user information & role is stored in mysql database.
How could I possibly do this, is filter the best way to it..How..???
TIA
MB


Malhar Barai
SOA & Java Book
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Hi all,
How abt some answers on my query too...as I am really stuck at this juncture..
TIA
MB
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Filters Again...??
 
Similar Threads
Declerative Security?
Declerative security ?
Webapp-Security chapter revision notes from HFSJ , may be useful
how to bypass j2ee security roles
"STRUTS-like action"