使用spring security taglib: 
    Java代码 
    <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> 
    ... 
    <security:authorize ifAnyGranted="ROLE_ADMIN"> 
    <a href="user/input/id/${nuId}.html">编辑</a> 
    </security:authorize>

    联系QQ:343886028 --加QQ群 145315854