• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Controling Application Access

 
Ranch Hand
Posts: 2206
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Authentication and Authorization Service

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