you should check out JAAS it shall provide what you are looking for.

http://www.javaworld.com/javaworld/jw-09-2002/jw-0913-jaas.html

Or you can do that programmatically, by putting ur roles, in a properties
file, and based on the logged in person, pick up the role from the file.

> -----Original Message-----
> From: Arunkumar_N [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 26, 2002 2:21 AM
> To: [EMAIL PROTECTED]
> Subject: How to enable/disable a particular control in JSP
>
>
> Hello,
>         I have around  8 roles defined in my application.
> I have to enable/disable a particular  control on the JSP
> page depending on
> the user.
> I am using Web-Sphere and LDAP for this application.
> Can any one suggest a suitable approach for this.
>
> regards
> arun
>
> **************************************************************
> ************
> This email (including any attachments) is intended for the
> sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others
> or copying or
> distribution or forwarding of any or all of the contents in
> this message is
> STRICTLY PROHIBITED. If you are not the intended recipient,
> please contact
> the sender by email and delete all copies; your cooperation
> in this regard
> is appreciated.
> **************************************************************
> ************
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
Disclaimer: This e-mail message along with any attachments is intended only
for the addressee and may contain confidential and privileged information of
GTL Limited. If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly prohibited. If you have received this message by
error, please notify us immediately, return the original mail to the sender
and delete the message from your system.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to