Hello Everybody!
I need to check roles of a user in my app to decide whether to render
some elements on JSP or not. Does someone happen to know how could I do
it (I mean the syntax of
Hi all,
The best thing to do to use the isUserInRole method is to define a filter
which propagate your own request wrapper ...
in this wrapper you redefine the isUserInRoleMethod
It's this method which will be used by the struts2 role interceptor.
To define a taglib which can test the role,
I personally tried with struts tags and JSTL tags I decided to give up
after a while (I solved it by creating my own isUserInRole tag.)
This in fact would be a nice addition to the struts 2 tags, it even
can be implemented by delegating to the if tag implementation, so that
you can have automatic
3 matches
Mail list logo