This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Controling Application Access

 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whold like some feedback on handleing access control. I have a master employee file that contains a job class. I have a file that assigns roles to each job class. My app looks at these roles to control access but this is where I could use some help.

Right now on my servlets that request JSP form I call the class with the user job class and role values. The class returns true or false. I then set a session attribute as either true or false. Then I use expression language and javascript to control display of the JSP.

Is there a better way? Please help.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Authentication and Authorization Service

When you get some headway on JAAS - move to security.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic