title: JSF 1.2 get a request scope managed bean in a regular servlet
body: <p>How can I get a managed bean in a pleain servlet with JSF 1.2? 
  I tried several solutions like those proposed here <a href="https://stackoverflow.com/questions/2669560/jsf-managed-beans-in-a-servlet">JSF Managed Beans in a Servlet</a> but without success. </p>
  
  <p>I send an XMLHttpRequest from a facelet where the managed bean is well instanciated, but when I tried this:</p>
  
  <pre><code> @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
      Bean bean = (Bean) req.getAttribute("bean");//null
      Bean bean = (Bean) getServletContext().getAttribute("bean");//null
  }
  </code></pre>
  
  <p>Is there a way on JSF 1.2?</p>
  
  <p>Thanks a lot</p>