If you use facelets... you could also write a simple EL-function... Has the advantage, that you do not have to change the ACL-class.
hth Alexander -----Original Message----- From: Ingo Düppe [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 11:39 AM To: MyFaces Discussion Subject: Accessing constants in EL expressions Hi, how can I access a constant integer value within an el-statement. I like to do something like: <s:acl domainObject="#{faculty}" hasPermission="#{ACL.GRANT + ACL.UPDATE}"> ... </s:acl> And ACL is defined as: public class ACL ... { public static final Integer GRANT = 1; public static final Integer CREATE = 2; public static final Integer UPDATE = 4; ... } Any suggestions would be wonderful :-) Regards Ingo