| | 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? |
|
|
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...
Similar Topics
Keywords : implementing permission based struts implement
I would like to get some information before launching myself to the JS libraries. Is it possible to Which one do most likely prefer? Struts or Tapestry?... Looking for implementing, permission, based, system, struts, implement
|
|
![]() Implementing Permission-based System Using Struts - How to implement this |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|