cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Authentication - accessing user info in JXTemplateGenerator?
Date Wed, 14 Jul 2004 08:30:57 GMT
I am trying to access the user information, after login,
in a JXTemplate Generator page, which is *not* called
by any flow...

I have tried:
  #{cocoon/session/context/authentication/authentication/ID}
and
 #{cocoon/session-context/authentication/authentication/ID}

I have also tried passing the info, from within the sitemap,
as parameters:

  <map:generate  type="jx" src="docs/mypage.jx">
     <map:parameter name="userID" 
value="{session-context:authentication/authentication/ID}"/>
  </map:generate>

And then accessing the parameter as follows:

  #{cocoon/parameters/userID}
and
  ${cocoon.parameters.getAttribute('userID')}

But without any success... if anyone can point me
to the right syntax, or appropriate method, I would
appreciate it!

Thanks
Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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


Mime
View raw message