Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Implementing Permission-based System Using Struts, How to implement this
clemen
post Feb 21 2005, 07:35 AM
Post #1


Newbie
*

Group: Members
Posts: 7
Joined: 21-February 05
Member No.: 3,887



Hi guys,

Do you have ideas on implementing role-based and/or permission-based system on Struts?

Where can I implement the checking of the roles/permission?

we have a servlet extending ActionServlet, can i use that servlet to implement this?
Go to the top of the page
 
+Quote Post
patelg
post Jul 28 2005, 04:23 AM
Post #2


Member [Level 2]
*****

Group: Members
Posts: 89
Joined: 27-July 05
From: AUSTRALINDIA
Member No.: 9,896



First starting point is to create table user, role and user_role.

In role table make sure you have role like administratorm user, etc

Once you have all this information, you create all form and related action classes. Based on the roles of the user you can mapp different action as shown bellow:

<action-mappings>
<action path="/user/main"
type="com.something.user.AddUserAction"
roles="administrator"
validate="false" >
<forward name="success" path="main.menu"/>
</action>

<action path="/user/main"
type="com.something.user.UpdateUserAction"
roles="user,administrator"
validate="false" >
<forward name="success" path="main.menu"/>
</action>

<action>
.....
.....
</action>
</action-mappings>

There should be some tutorials out there....goooogled it.

Good luck, it will be interesting...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. What's Your Favorite Game System - Console(181)
  2. Install Two Anti-virus Software In 1 System(37)
  3. Do You Use (or Plan To) Asp.net?(8)
  4. Is It Actually Worth Joining The Army System(13)
  5. Innovative Login System(20)
  6. What's Your First System?(93)
  7. Carpentry Information(10)
  8. Adventure11 - Internet Surfing Game And Advertising System(4)
  9. Simple Php Login And Registration System(15)
  10. Content Management System (cms)(13)
  11. Credit System V2.0 Online(25)
  12. Blood Grouping System(3)
  13. Simple Javascript And Password System(9)
  14. Budding Java Game Developers?(10)
  15. Text Based Game(6)
  1. Microsoft Vs. Macintosh(34)
  2. Its's Official Microsoft Is Done With The Windows Operating System(13)
  3. Virtual Pc 7 For Mac(11)
  4. Suggestions For Version 3 Of The Credit System(28)
  5. How To Remember Complex Passwords(9)
  6. Creating A Php Login System Using Mysql(10)
  7. What Operating System Do You Use?(15)
  8. Creating A Shortcut List Near The System Tray(4)
  9. Level Up System?(1)
  10. Reclaim Control Over Your Windows-based Pc(2)
  11. Best Text-based (mmo)rpg's(5)
  12. Awesome Mmorpg Game(1)
  13. The System Doesn't Let Me Apply For Hosting Upgrade [resolved](4)


 



- Lo-Fi Version Time is now: 6th October 2008 - 06:08 PM