spring security是否能控制到按钮 spring security是否能控制到按钮?能够介绍一下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %><sec:authorize ifAllGranted="ROLE_SUPERVISOR"> <form method="GET" action="<c:url value="/addVisit.do"/>" name="formVisitPet${pet.id}"> <input type="button" name="button"/> <input type="hidden" name="petId" value="${pet.id}"/> <p class="submit"><input type="submit" value="Add Visit"/></p> </form></sec:authorize>这样是控制页面是否显示特定的组件<bean id="bankManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"> <property name="validateConfigAttributes"><value>true</value></property> <property name="authenticationManager"><ref bean="authenticationManager"/></property> <property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property> <property name="runAsManager"><ref bean="runAsManager"/></property> <property name="afterInvocationManager"><ref bean="afterInvocationManager"/></property> <property name="objectDefinitionSource"> <value> org.acegisecurity.context.BankManager.delete*=ROLE_SUPERVISOR,RUN_AS_SERVER org.acegisecurity.context.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR,BANKSECURITY_CUSTOMER,RUN_AS_SERVER </value> </property></bean> 这样可以利用切面控制方法的调用权限,看你的需要了详情参照http://www.acegisecurity.org/guide/springsecurity.html xsl 编码转换问题 各位大哥,大姐,帮个忙 请问如何将用myecplise编写的web项目导入到lomboz eclipse中 小弟关于对 javascript中对像函的问题 如何用图片代替html:submit,而且是dispatchaction. java 中写插入oracle的Date类型 一个JSP对象作用域的问题 急!如何在jsp中实现把大图片转换成小图片? 谁有日历的源代码 struts中action中如何取得ServletContext xml问题
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %><sec:authorize ifAllGranted="ROLE_SUPERVISOR">
<form method="GET" action="<c:url value="/addVisit.do"/>" name="formVisitPet${pet.id}">
<input type="button" name="button"/>
<input type="hidden" name="petId" value="${pet.id}"/>
<p class="submit"><input type="submit" value="Add Visit"/></p> </form>
</sec:authorize>
这样是控制页面是否显示特定的组件
<bean id="bankManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="validateConfigAttributes"><value>true</value></property>
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
<property name="runAsManager"><ref bean="runAsManager"/></property>
<property name="afterInvocationManager"><ref bean="afterInvocationManager"/></property>
<property name="objectDefinitionSource">
<value>
org.acegisecurity.context.BankManager.delete*=ROLE_SUPERVISOR,RUN_AS_SERVER
org.acegisecurity.context.BankManager.getBalance=ROLE_TELLER,ROLE_SUPERVISOR,BANKSECURITY_CUSTOMER,RUN_AS_SERVER
</value>
</property>
</bean> 这样可以利用切面控制方法的调用权限,看你的需要了
详情参照
http://www.acegisecurity.org/guide/springsecurity.html