title: Guice inject in servlet
body: <p>I'm fresh new in Google Guice framework and i have a question regarding injecting in guice servlet and using RequestScope. Ok let me give some example from my code just to make the things clearly.</p>
  
  <p>I have a bean class for example Bean ..    </p>
  
  <pre><code>@RequestScope
  public class Bean {
      private String user;
      private String pass;
  
      // constructor which is @inject 
  
      // getters and setters
  }
  </code></pre>
  
  <p>Here i've got a servlet </p>
  
  <pre><code>@Singleton
  public class MainServlet extends HttpServlet {
      doGet(HttpServletRequest request, HttpServletResponse response) {
          .... some code 
          Injector injector = Guice.createInjector();
          ValidUser validUser = injector.getInstance(ValidUser.class)
          // Here i got the below exception
      }
  }
  
  
  
  com.google.inject.ConfigurationException: Guice configuration errors:
  
  1) No scope is bound to com.google.inject.servlet.RequestScoped.
    at Bean.class while locating Bean
  </code></pre>
  
  <p>It's interesting here that servlet scope is singleton as we know. 
  And also how can i get from the http request - Bean instance?? because as far as i understand after a instance of a Bean class is injected it goes in the http request, right? </p>
  
  <p>Any help or example is welcome.
  Thanks
  Br </p>