1 Reply Latest reply on Jul 8, 2007 9:53 AM by pmuir

    Access Log from servlet

    twocoasttb

      The following works in a servlet:

      SiteUser currentUser = (SiteUser)Component.getInstance("currentUser", ScopeType.SESSION, false);


      but this doesn't:

      Log log = (Log)Component.getInstance("log", false);


      and neither does this:

      Log log = (Log)Component.getInstance("log", true);


      Is this possible? I assuming it's because the name is wrong, but the variations I've tried haven't helped. I've also tried specifying the APPLICATION SCOPE.