You could also use the role attribute of the logic:present tag: http://jakarta.apache.org/struts/userGuide/struts-logic.html#present
David
From: "Puneet Agarwal" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users" <[EMAIL PROTECTED]> Subject: Item Level Security Date: Wed, 2 Apr 2003 21:20:57 +0530
In our application every button does not have to be enabled for every user.
on server side we have a list of functions that are available for a particular role and every user session has his role information.
what we have done to do this is:
we included another attribute (named function) in html taglib's "image" tag.
and in the ImageTag.java we checked whether current user role is allowed to perform this function, if yes this button is enabled otherwise not.
Is there any better approach to do this ?
Regards, Puneet Agarwal
Tata Consultancy Services, C-56, Phase - II, NOIDA 201305 (India) Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031) FAX : +91-120-246 1521
Struts ... Action ... Struts in Action ... Action in Struts ... Action "with" Struts ...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

