1 Reply Latest reply on Jul 12, 2010 11:31 PM by herberson

    Identity component in Servlet side (doGet())

      Hi,


      I create a link with the user information and send a request with the user-information,
      and using a servlet I intercept the request, and I fill my person object with
      the appropriate information. I can not access @Identiy components within the servlet doGet (access)
      and initialize credentials.username credentials.password.


      how can I access @Seam.Identity within my servlet and fill it with correct information 
      and get redirected to the first page without using the login page.


      Thanbks im advance
      Hassan Bidani

        • 1. Re: Identity component in Servlet side (doGet())
          herberson

          On your doGet method try this:



                    new ContextualHttpServletRequest(request) {
                         @Override
                         public void process() throws ServletException, IOException {
                              Component.getInstance(Identiy.class, true);
                         }// end method
                    }.run();