cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michael_ham...@sonynetservices.com
Subject accessing Authentication Session Context with java
Date Wed, 09 Oct 2002 08:52:43 GMT
Hello,

   I am trying to get the user data stored in the authentication session
context in an action.
   I tried:
      SessionManager.getContext("authenticate");
   and:
                 SessionContextProviderImpl.getSessionContext
("authenticate", .......);

   Both methods return a context and if I do
      context.getName();

   it returns "authenticate".

   The problem is that in both cases if I try to get the xml with
    for example:
      context.getXML("/authentication");
    the returned document fragment is always null.

    I have done this for the temporary session context as well and there it
worked.
    I got the data with e.g.:
      context.getValueOfNode("/data/source");

    Please tell me what I am doing wrong here.

    Thanx again for any help.


     miham


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message