wood burning stoves*
The moose likes Struts and the fly likes How to show modules depending on the users role in a web app? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to show modules depending on the users role in a web app?" Watch "How to show modules depending on the users role in a web app?" New topic
Author

How to show modules depending on the users role in a web app?

Yan Lee
Ranch Hand

Joined: Sep 15, 2003
Posts: 94
Hi,
I need to write the struts layer of a web-app where the modules visible to a user, once the user logs in , the modules visible to the user depend on the role assigned to her/him.

What are the suitable options to implement this?

Thanks for the help.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

I believe this is something 99% web.xml

You can assign groups to certain patterns like the administrators are assigned to admin/* (the admin module). I don't know how else to explain it without just doing it for you and what's the fun in that?


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to show modules depending on the users role in a web app?
 
Similar Threads
Portal app or web app?
role-link and role-name elements?
isUserInRole() doubt
isUserInRole() doubt
Getting defined security-roles programatically