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

    Access Log from servlet

    Thomas Barry Newbie

      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.