Cocoon Portal: how to retrieve the user with XSP

2003-11-17 Thread Sylvain.Thevoz
Hello,

I'm using the Cocoon portal and I need to retrieve with XSP the username I enter at 
the authentication when I open an application from within the portal.

How could I retrieve this username?
Is this information always available?

Thanks
Regards
Sylvain

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cocoon Portal: how to retrieve the user with XSP

2003-11-17 Thread Matthew Langham
Sylvain,

once the user is authenticated the information is stored in the session
context for that user and is always available.

See:
http://cocoon.apache.org/2.1/developing/webapps/authentication.html#Getting+
information+from+the+context

for information on reading the context using getxml.

Matthew


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 17, 2003 10:18 AM
 To: [EMAIL PROTECTED]
 Subject: Cocoon Portal: how to retrieve the user with XSP


 Hello,

 I'm using the Cocoon portal and I need to retrieve with XSP the
 username I enter at the authentication when I open an application
 from within the portal.

 How could I retrieve this username?
 Is this information always available?

 Thanks
 Regards
 Sylvain

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon Portal: how to retrieve the user with XSP

2003-11-17 Thread Ashish Kumar
hi there,
   
   I think u r looking for xsp-request:get-remote-user element, it
should work for u...
  there r many other elements available that u can use to retrieve
info. like, for session, xsp-request:get-requested-session-id etc
have a look at the http://localhost:8080/cocoon/documents/userdocs/xsp/request.html
page on the comp. u have the cocoon running

cheers.


Sleight of hand and twist of fate,
On a bed of nails she makes me wait...

ASHISH KUMAR,
B. TECH. 3rd YR.
IIT ROORKEE,
INDIA. 
-

On Mon, 17 Nov 2003 [EMAIL PROTECTED] wrote:

 Hello,
 
 I'm using the Cocoon portal and I need to retrieve with XSP the username I enter at 
 the authentication when I open an application from within the portal.
 
 How could I retrieve this username?
 Is this information always available?
 
 Thanks
 Regards
 Sylvain
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]