java - Appfuse spring security hasRole() not working -


i'm trying appfuse , have added custom menus in menu.jsp (no doing in menu-config.xml because add glyphicon, , struts menu can't it)

so hide/show menus wanted use spring security authorized tag

<security:authorize access="hasrole('role_admin')">                          <li>                             <a href="test.jsp"><i class="fa fa-edit fa-fw"></i> forms</a>                         </li> </security:authorize> 

but tag causes yike! error(error 500), nothing showed in console. have

<logger name="org.springframework.security" level="all"/> <logger name="org.springframework" level="all"/> 

in log4j2.xml.

if switch <security:authorize ifanygranted="role_admin"> works expected. far know, ifanygranted deprecated.

i'm curious why see no error in output console?

i'm using appfuse 3.5 springmvc, running jetty:run

well since alex didn't put answer, post myself

i had add use-expressions="true" in http tag in security.xml

for example


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -