2 Replies Latest reply on Mar 21, 2013 12:02 PM by iampowers

    Gain Access to Session in Aerogear Controller

    iampowers

      I'm finding it difficult to deal with user access/information using the Aerogear controller.  I don't appear to have access to the session in my pojos (that get routed to) that I can tell.

       

      My current issue that illustrates this problem is that I want to get the user ID without having that parameter be set as a parameter (nor do I want to do a POST). If I was using a different framework, I could simply get the user out of the session (as I set it into the session inside of a jsp already).

       

      Is there something to address this in Aerogear?

       

      Edit: I tried adding @Context HttpServletRequest req; to my pojo class, and it doesn't work. I'm not exactly sure how some of those get injected, but I thought I'd give it a shot.

      Thanks,

      Nick