1 Reply Latest reply on Jan 29, 2013 12:13 PM by lightguard

    ServletContexts in seam 3 ??

    rahul22

      hi ,

       

      in seam 2 we have ServletContexts class which i was using like :-

       

      ServletContexts.instance().getRequest().getSession().setAttribute("","");

      ServletContexts.instance().getRequest().getSession().getAttribute("","");

       

      I'm planning to replace it with

       

      @Inject

          private HttpServletRequestContext httpRequest;

       

      then

       

      httpRequest.getRequest().getSession().setAttribute("","");

      httpRequest.getRequest().getSession().getAttribute("","");

       

      I'm doing correct or theres a better way ??????

       

      Thanks!