Implementing Permission-based System Using Struts - How to implement this

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Implementing Permission-based System Using Struts - How to implement this

clemen
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?

Reply

patelg
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...

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : implementing, permission, based, system, struts, implement

  1. Creating A Php Login System Using Mysql
    I need help in creating a login system, what I want is a login system (9)
  2. How To Remember Complex Passwords
    Use the BEST password system ever! (8)
    The Trap17 forums have a whole subforum devoted to those amongst use who have failed to remember
    their passwords, and have locked themselves out of their free web hosting account. If you forget
    your password, you can go to Free Web Hosting, No Ads > FREE WEB HOSTING > FREE WEB HOSTING
    REQUESTS > Free Web Hosting : Password Reset and ask the friendly admins there to reset your
    password for you. Remember the days when your password on the Internet could be something like
    andrew18 ? And you could use that same password on all three websites that you visited....
  3. Suggestions For Version 3 Of The Credit System
    (23)
    Although its been a long time since it was first announced that a version 3 of the credit system was
    announced to various people. This topic gave me a great idea and a reason for this topic . That
    is what would you like to see in the version 3 of the credit system, let it be updates to current
    features or new ideas post them here and give details as to why you want this change or to make an
    update to the credit system. Not to take from saitunes topic about this, but sending an email or a
    pm that persom is about to hit 0 credits is a great idea and I would say that wh....
  4. How To Install Opengeu In Ubuntu
    OpenGEU is a distro based on Enlightenment and derived from Ubuntu (0)
    First of all please note well that E17 is in beta fase, and can make your computer segfault (which
    by contrary - WILL NOT ERASE YOUR DATA - your computer will be restored to the statein which it was
    before it segfaulted), and if you don't want this to happen then don't install this!
    Well, in this tutorial I will tell you how to install OpenGEU when you already have Ubuntu (or
    Kubuntu and Xubuntu ) installed already on your machine. First of all I need to introduce you to
    OpenGEU, it's a relativelly new Linux distro which uses Enlightenment ins....
  5. Virtual Pc 7 For Mac
    does anyone know how to install a operating system on it. im stuck :( (11)
    Hey Does anyone use Mac G5 here? I have a Mac G5 with leopard installed. Ive recently installed
    Virtual Pc 7 i followed the instructions. And it told me to insert a disc and then choose the disc
    type and click capture disc if it isnt already captured automatically. However it wont work for me
    because the option to press capture disc is greyed out. If it doesnt let me click on it then how am
    i suppose to load it. And it says any windows is compatible. but if i had service pack 2 would it
    matter? I don't know. it doesnt seem to be working. Do you know which operating ....
  6. Web Based Os
    Fully online Remote Desktops [free!] (7)
    This is something worth checking out! Everyone is familiar with Desktop Operating Systems...
    Windows, Linux, MacOS etc... ...but do you know about online Web-based OS? Basically, you open a
    (usually free) account where you are able to log in to see a fully functional desktop... all through
    your web browser. It's just like working on a "normal" computer except that, because it's
    online, you can access your work... and the programs from anywhere. If you haven't seen this,
    it's probably better to have a live example. Here are four examples for you to....
  7. Html Based Emails On Hotmail
    (0)
    Hi everyone. I would like to ask if anyone here knows how to compose a HTML based email, with
    pictures and links, on Hotmail? I can't seem to compose one. Thanks in advance.....
  8. How To Implement A Date Picker On A Web Page
    (0)
    Some pages may need users to input date values. It would be nice if the users just need to click and
    pick and done. This way we may also eliminate the possible input errors. Below is the code I used to
    implement this. You may want to save it as datepicker.js for other web pages to use. I also attached
    3 files for you to download. All you need to do is unzip the 3 files to a directory under any web
    server and start trying it. If you are using jsp, you can refer to the submited field by adding
    something like request.getParameter("date1") to your page. If you're using....
  9. Its's Official Microsoft Is Done With The Windows Operating System
    (12)
    Wow and I thought this one website was joking around that Microsoft plans to do one more Windows
    Operating. I don't know if Windows 7 will be the last one or not but the project goes by the
    code name Midori and it is based on the Cloud computing concept, which by the way Dell is trying to
    copyright this name for. All I know about cloud computer is that it will be internet based
    operating system meaning that buying CD's based software could end. Heck we are already seeing
    it in which yo ucan download full license software without hte use of a CD (legally). Rig....
  10. Browse System Files In The Browser...
    (2)
    Hi all Trap 17 people... I am not sure if you are already aware of this fine piece of information,
    But definitely a must know feature... Browsing your system files in your browser. For more visit the
    below link http://varalu.blogspot.com/2008/07/browsin...in-firefox.html You can use this feature
    to do so many stuffs... pretty much useful for addon developers. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
  11. Full Cms System [php]
    Really Good Guide to Follow. (4)
    This tutorial will teach you how to make a full news cms, this tutorial is quite long and don't
    complain about spelling mistakes! QUOTE Features: Admin Panel - Add News - Edit News -
    Delete News Comments - Add Comments - Delete Comments - Edit Comments BBCode - Bold Tags- Italics
    Tags - Underlined Tags - Strike Through Tags - Link Tags - Image Tags - Code Tags - E-Mail Tags
    To start off we need to create our mysql for our news cms. CODE CREATE TABLE `news`
    ( `id` int(10) NOT NULL auto_increment, `title` varchar&#....
  12. How To Implement Single Instance Application On Java
    (0)
    See the next few lines containing Java Code: CODE 1. // imports    2. import
    sun.management.ConnectorAddressLink;      3. import sun.jvmstat.monitor.HostIdentifier;      4.
    import sun.jvmstat.monitor.Monitor;      5. import sun.jvmstat.monitor.MonitoredHost;      6. import
    sun.jvmstat.monitor.MonitoredVm;      7. import sun.jvmstat.monitor.MonitoredVmUtil;      8. import
    sun.jvmstat.monitor.MonitorException;      9. import sun.jvmstat.monitor.VmIdentifier;     10.  
      11. public static void main(String args[]) {     12.         /* The method Managem....
  13. Stupid Credit System
    (10)
    Why does this site has a stupid credit system that you only get 0.7 credit a word or is it even
    less. WTF is this.....
  14. Microsoft Vs. Macintosh
    Which operation system is the best (33)
    Now that we all know Microsoft is comming out with a new windows soon. It's called Windows 7.
    Now after reading an article about that comming out, i got a little upset. For one in the last
    sentece that i read, microsoft says We are trying to create an operating system that can make you
    stop dreaming about OS (Operating System) X or Linux. Well for all of that don't know what OS X
    is, it's Macintosh's Operating system. Last time i knew was that MAC has created an
    operating system that runs off of the same hardware as Microsoft Windows does. The hardware th....
  15. Budding Java Game Developers?
    Ever wanted to make your own java web-based game, but not had the time (9)
    Right, this is the first post of hopefully many in this thread. Basically the idea is to get many
    developers together to share ideas and knowledge to create our very own game. First we'll be
    asking for is any ideas of what kind of game everybody would like to make, and then we'll set
    about assigning tasks depending on everybodies skills. We will need programmers, artists,
    web-designers, even admin and marketing. This will be freeware, but the experience will be great.
    So, ideas anyone?....
  16. I Have 30 System In My Network
    I want my network to become slow what I need to do (9)
    Hi I have 30 system in my network I want my network to become slow what I need to do can any one
    tell me even if there try to browes like yahoo, hotmail, gmail, etc.the pages shoud not open any
    pages My network is 100mbps And my internet speed is 1mbps I don’t have any router only
    unmanaged switch ....
  17. Credit System V2.0 Online
    Free Web Hosting Credit System v2 now online! (22)
    Dear Members, I am pleased to announce that I have finished coding Credit System V2.0 and its now
    online for members to use. Instead of the old URL used for managing your free web hosting account
    (http://www.trap17.com/process), You shall now be using :- http://www.trap17.com/manage (Credit
    System v2.0 Url) The new version is :- More secure. More reliable. Easily Upgradable and employs
    Module system. Has a Much better look. Central Login. Ajax Powered. Has a Log System. Good
    number of Bugs fixes Please use it and kindly report any further suggestions, comme....
  18. Data Structure -- Queue -- Implement Using Stack
    (1)
    Implement a Queue using a stack. No restriction on space complexity. One possible Solutions a
    costly procedure... 1. Use a temp stack 2. Insertion into queue - Push the element into the
    original stack 3. Deletion from queue - Pop all the elements from stack into a temp stack
    - pop out the first element from the temp stack - pop all the remaining elements back to the
    original stack What is a queue? QUOTE A queue is a particular kind of collection in which
    the entities in the collection are kept in order and the principal (or only) operation....
  19. Ubuntu Linux As Free Operating System Alternative
    linux operating system (47)
    About three years ago I decided to learn how to use Linux and after a lot of posts on a forum I
    tried Ubuntu Linux as it was recommended as a good first Linux distro. Ubuntu is not the easiest
    Linux distro to use but with its unmatched forum community support it is one of the easiest to learn
    to use. One of the problems with learning Linux is that a lot of users have an attitude that Linux
    should be a free Windows knock off which it is not. Ubuntu is build on a Linix core or kernel and is
    a different Open Source and free as in to use operating system. This brings us to t....
  20. Adventure11 - Internet Surfing Game And Advertising System
    (4)
    About Adventure11 Innovative & Experienced Leadership Adventure11 v1.0, Internet Surfing
    Game and Advertising System was officially launched on April, 23rd 2007. Adventure11 is owned and
    operated by 2020 Internet Incorporated, a registered legal corporate entity of the Republic of
    Panama in Central America. 2020 Internet Incorporated is a Software Development Company with a
    commitment to providing unique and valuable services for the Internet Advertising Industry,
    specifically for the Incentive Based Internet Advertising Industry. IT Professionals and Progra....
  21. What's Your First System?
    (93)
    If I had to say my very first game system was it had to be the Nintendo 64. It was christmas and
    when I was little kid and opened it I was so excited to play mario 64 I played it everyday it was
    so, fun! Then mario party came out..I started to play it wasn't bad I just love the felling
    of playing it and now a days I still go with nintendo I have a wii and DS I would never go to
    another company because mario was the game I was always good at.. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />....
  22. Innovative Login System
    A new way to login to a website (18)
    Hi, I came across this website www.planmylifestyle.com which offers an innovative login system. In
    the traditional login system, a user is asked to enter a username and password besides many other
    personal information. In this website, to register the site creates an ID file that the user can
    download to the local hard drive. After registration, to login to the website, the user has to
    simply upload the registered ID file (browser and select ID file from local hard drive) and click on
    the Login Button. The user is then taken to the website which seems to be a searc....
  23. System Does Not Detect Dvd/cdrom Drive
    (21)
    so i came home from school and my brother told me that my mom's laptop doesn't detect the
    dvd/cd rom drive (the drive icon doesn't show up in My Computer). he told me that the drive
    doesn't even open up (meaning he can't put any cd there). i thought he was just joking so i
    just shrugged it off. that was until i checked the laptop myself. he was right. the drive is not
    detected and the icon doesn't show up in the My Computer window. when i checked the drive, the
    drive light was on (just on, not blinking or anything). i tried pushing the open drive ....
  24. Get 30 Gb Email For Free
    let us talk about , email system for huge data ! (31)
    Friends here we are talking about largest email, free System http://www.30gigs.com this one is
    good and can handel many file at a time. plz let me know any one having this type of information
    ! Also for small user www.walla.com is good one....
  25. School's Blocking System.
    Its not the smartest of things (28)
    The blocking system at school for blocking websites is stupid. It blocks pretty much any website you
    go to. If you go to school what is the blocking system like there? By the way I am posting this of a
    school computer /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif"
    />....
  26. Game Maker
    Game Creation System (15)
    Always wanted to make games? Check out Game Maker . It's free and you can do so much with it.
    "Have you ever wanted to be able to design computer games, but didn't want to spend countless
    hours learning how to become a programmer? Then you've come to the right place. Game Maker is a
    program that allows you to make exciting computer games, without the need to write a single line of
    code. Making games with Game Maker is a lot of fun. Using easy to learn drag-and-drop actions, you
    can create professional looking games within very little time. You can make gam....
  27. Do You Use (or Plan To) Asp.net?
    Or some other .NET based evniroment? (8)
    I'm interested how many of you use .NET framework, how do you like it, what are it's pros
    and cons, and anything that comes accross your mind related to it? I'm using PHP/MySQL
    combination for now, but I'm considering move to ASP.NET. I've never even used ASP, so what
    do you recommend? ASP.NET or NOT ASP.NET? Or maybe to start with ASP?....
  28. 5.1 Sound System Problems
    Need help... (8)
    I have a 5.1 Sound System. It works great in 2 channels but when I switch to 5.1 the subwoofer
    ain't working. My motherboard has a nvidia 4 ultra chipset so it supports 5.1 configuration.
    Also in nvidia mixer when I use sound test everything is great and I can hear the subwooofer working
    as is should. But when I want to watch a movie or listen to music the subwoofer is as good as dead.
    Can somebody help me? ....
  29. Complete Login System
    With PHP + MYSQL (57)
    Its an complete login sistem made and tested by me and I think itwill be very usefull for people who
    are tryn to learn PHP. First, let's make register.php: CODE <?
    include("conn.php"); // create a file with all the database connections
    if($do_register){ // if the submit button were clicked if((!$name)
    || (!$email) || (!$age) || (!$login) ||
    (!$password) || (!$password2)){ print "You can't let
    any fields in blank....
  30. What's Your Favorite Game System - Console
    select one from each poll (180)
    i'm a computer game fan. it's expensive but more useful. it can be use for many purpose for
    your study and entertainment. much easier to use and most common to more people.....

    1. Looking for implementing, permission, based, system, struts, implement

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for implementing, permission, based, system, struts, implement

*MORE FROM TRAP17.COM*
Similar
Creating A Php Login System Using Mysql - I need help in creating a login system, what I want is a login system
How To Remember Complex Passwords - Use the BEST password system ever!
Suggestions For Version 3 Of The Credit System
How To Install Opengeu In Ubuntu - OpenGEU is a distro based on Enlightenment and derived from Ubuntu
Virtual Pc 7 For Mac - does anyone know how to install a operating system on it. im stuck :(
Web Based Os - Fully online Remote Desktops [free!]
Html Based Emails On Hotmail
How To Implement A Date Picker On A Web Page
Its's Official Microsoft Is Done With The Windows Operating System
Browse System Files In The Browser...
Full Cms System [php] - Really Good Guide to Follow.
How To Implement Single Instance Application On Java
Stupid Credit System
Microsoft Vs. Macintosh - Which operation system is the best
Budding Java Game Developers? - Ever wanted to make your own java web-based game, but not had the time
I Have 30 System In My Network - I want my network to become slow what I need to do
Credit System V2.0 Online - Free Web Hosting Credit System v2 now online!
Data Structure -- Queue -- Implement Using Stack
Ubuntu Linux As Free Operating System Alternative - linux operating system
Adventure11 - Internet Surfing Game And Advertising System
What's Your First System?
Innovative Login System - A new way to login to a website
System Does Not Detect Dvd/cdrom Drive
Get 30 Gb Email For Free - let us talk about , email system for huge data !
School's Blocking System. - Its not the smartest of things
Game Maker - Game Creation System
Do You Use (or Plan To) Asp.net? - Or some other .NET based evniroment?
5.1 Sound System Problems - Need help...
Complete Login System - With PHP + MYSQL
What's Your Favorite Game System - Console - select one from each poll
advertisement



Implementing Permission-based System Using Struts - How to implement this



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free 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