title: Difference between redirect in jsf and sendRedirect in JSP
body: <p>In my application I use JSF. I want
   to redirect the user to error page
   when their session expires. I have
   tried by using <code>&lt;redirect /&gt;</code> tag in
   faces-config with navigation case. It's
   not working properly. It changes the
   url, but the page is not loaded for
   ajax requests. But if I use sendRedirect method of HttpServletRespose Class it's working properly. What is the difference between the both?</p>
  
  <p>This is the code in faces-config file,</p>
  
  <pre><code> &lt;navigation-rule&gt;
      &lt;navigation-case&gt;
          &lt;from-outcome&gt;session_expired&lt;/from-outcome&gt;
          &lt;to-view-id&gt;/pages/general/home.jsp&lt;/to-view-id&gt;
          &lt;redirect /&gt;
      &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>
  
  <p>Thanks for you quick reply.</p>