Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

How can I achieve user roles in Java Web application ?  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am developing web application with Java EE and apachache tomcat 9.0, the application is student control system; i categorized as follows:
-- Models( Student.java, Teacher.java, ClassRoom.java, AccademicYear.java, Exams.java so and so)
-- DAO data access objects (......)
---Controllers (these controllers are extending HttpServlet and i named them to and so)
-- Views, which are totally jsp files with no native java code all they are using EL (Expression language and JSTL), they are stored in different directories suppose in students i use this folder and .
--- in addition I created another class called which .
--- all these are good the user prompted to login, after filling login credentials it will be established a session and stored user data;

--- now what I want is: if the school needs different levels of users like a user which specific to billing and a user which also specific to exams and super role user which has all the privileges to control such of these activities;
how do adapt this, also i have an idea which is kind of grid that manages roles in one window it would mimic like the below image:
User Role Manager

below is my workplace shot
roleManager.png
[Thumbnail for roleManager.png]
 
Saed Hussein
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Saloon Keeper
Posts: 4689
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet API has a concept of user roles built in. Start reading here: https://coderanch.com/wiki/659865/Servlets-Faq#security
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!