Help: Security - Programmatic "isUserInRole " Usage 2003-09-10 - By Ben Hill
Back I am currently using the:
public boolean isUserInRole(java.lang.String role)
..method in the javax.servlet.http.HttpServletRequest class to check to see if a user is in a particular role. Obviously this works from the deployment descriptor's role definition.
I wondered if there was a method to use this isUserInRole method with programmatic security? I'd like the user to log in from a webpage, and the role etc be obtained from a DB, then part of the application will run that isUserInRole method, to display particular content depending on the role.
Cheers,
Ben
--- ben@(protected) www.javacoder.net - "Java Coding, from the Source"
=================================================================== EASY and FREE access to your email anywhere: http://Mailreader.com/ ===================================================================
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|