Hi there,
I'd like to customize the view based on ROLE. I have 28 different roles in
my system and I would like to depending on the role show some fields
disabled or not and/or to hide buttons depending on the role they have. I
was wondering what could be the best approach to get this.
I have seen the UserRoleAuthorizationInterceptor and perhaps the best way is
to enhance it. I'd create then 3 boolean variable for allowing/preventing
CRUD operations, i.e. allowCreate, allowUpdate, allowDelete.and then passing
the parameters from the corresponding action in struts.xml.
Is this the best way to do it?
Is it better to create a new interceptor for doing this? Interceptor is not
the answer?
Thank you in advance!
Oscar

Reply via email to