title: Xhtml pages and HttpSession test , no jstl?
body: <p>I have a dynamic web application in Java EE with JSF, Facelets, Richfaces. 
  My pages are all xhtml pages.
  So JSTL isn't working in it.
  For my account pages and all other private pages to be reachable, I want to test if the user got connected, so if the attribute session in <code>HttpSession</code> is not null. If it's null, the user gets redirected in the welcome page. </p>
  
  <p>I tried in my xhtml page : </p>
  
  <pre><code>&lt;jstl:if test="${sessionScope['session']==null}"&gt;
   &lt;jstl redirect...&gt;
  &lt;/jstl:if&gt;--&gt;
  </code></pre>
  
  <p>but as it's not jsp page it won't work. So where am I supposed to test if the session is not null to allow the user to see his private pages ? 
  in a central managed bean ? </p>