velocity acegi tag

引用

<!--acegi tag-   -->
<bean id="viewResolver"
class="...framework.web.velocity.VelocityViewResolver">

...

<property name="attributesMap">
            <map>            
                <entry key="authz" value-ref="authzImpl"/>
            </map>
        </property>
</bean>
<bean id="authzImpl" class="org.acegisecurity.taglibs.velocity.AuthzImpl" />



Welcome back, $!authz.principal
    #if($!authz.allGranted("ROLE_MODEL","ROLE_PLAYING"))
         blah blah blah blah blah
    #end

http://www.acegisecurity.org/acegi-security/apidocs/org/acegisecurity/taglibs/velocity/Authz.html

你可能感兴趣的:(html,velocity,Security,Acegi)