isUserInRole on JSP page...

2007-11-16 Thread Filippov, Andrey
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

Re: isUserInRole on JSP page...

2007-11-16 Thread Romain GONORD
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,

Re: isUserInRole on JSP page...

2007-11-16 Thread Gabriel Belingueres
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