Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java sitemesh装饰器中的Spring安全标记_Java_Jsp_Struts_Spring Security_Sitemesh - Fatal编程技术网

Java sitemesh装饰器中的Spring安全标记

Java sitemesh装饰器中的Spring安全标记,java,jsp,struts,spring-security,sitemesh,Java,Jsp,Struts,Spring Security,Sitemesh,我想在SiteMesh的decorator文件中使用SpringSecurity标记库的一些标记。但是,这些标签内的内容从未显示。谁能告诉我这是为什么 代码: 侧面图 信息 由于某些原因,两个块都未显示 我想你需要在过滤链中将Sitemesh过滤器放在Spring安全过滤器之后,也就是说,在web.xml中相应地排列它们的。几个小时来搜索这样愚蠢的东西。我可以说大多数人根本不会要求使用sitemesh。好家伙。 <!DOCTYPE html PUBLIC "-//W3C//DTD XH

我想在SiteMesh的decorator文件中使用SpringSecurity标记库的一些标记。但是,这些标签内的内容从未显示。谁能告诉我这是为什么

代码:


侧面图

信息


由于某些原因,两个块都未显示

我想你需要在过滤链中将Sitemesh过滤器放在Spring安全过滤器之后,也就是说,在
web.xml
中相应地排列它们的

几个小时来搜索这样愚蠢的东西。我可以说大多数人根本不会要求使用sitemesh。好家伙。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<!--HTML-->
     <form id="login_form" method="post" action="<c:url value='j_spring_security_check'/>">
      <sec:authorize access="isAuthenticated()">
       <p>profile</p>
       <p>messages</p>
      </sec:authorize>
      <sec:authorize access="isAnonymous()">

       <!--A Login form -->
      </sec:authorize>
     </form>
<!--More HTML -->
</html>