title: Spring tags don't work in JSF xhtml files
body: <p>I am new to JSF and Spring. I am trying to use Spring Security with JSF. I have designed an XHTML page as below:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:spring="http://www.springframework.org/tags"
      xmlns:form="http://www.springframework.org/tags/form"&gt;
  &lt;head&gt;
      &lt;title&gt;JSF Test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;f:view&gt;
      &lt;p&gt;This page should be authenticated!&lt;/p&gt;
      &lt;a href="&lt;spring:url value="/j_spring_security_logout" htmlEscape="true" /&gt;"&gt;Logout&lt;/a&gt;
      &lt;div&gt;Test: &lt;spring:url value="/j_spring_security_logout" htmlEscape="true" /&gt;&lt;/div&gt;
    &lt;/f:view&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am trying to add a logout link using the <code>spring:url</code> tag. However, firstly this gives an error that <code>href</code> attribute cannot contain &lt;. To troubleshoot this I removed the <code>a</code> tag and used the <code>div</code> to test whether I am able to get the desired value from the <code>spring:url</code> tag. I found that the <code>spring:url</code> tag is not being parsed and appears as it is in the source of the generated page.</p>
  
  <p>Instead of using XHTML page if I use JSP page with taglibs instead of xmlns, everything works fine. I am not able to understand why it is not working with XHTML files.</p>
  
  <p>My <code>Faces Servlet</code> is mapped to <code><em>.jsf</code> and <code>springSecurityFilterChain</code> is mapped to <code>/</em>*</code> (without the space in between). I tried mapping <code>springSecurityFilterChain</code> to <code>*.jsf</code> and that too doesn't help.</p>