You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roberto Fornasiero <ro...@esplorasrl.com> on 2003/10/02 10:35:02 UTC

[help] access parameters

Could you please help me?
I need to access to the user name parameter after the authentication, nut i don't know how. I' ve read many posts but i didn't find what i'm looking for.
thanks.
Roberto

RE: [help] access parameters

Posted by Giancarlo Rosso <ro...@overweb.it>.
Quoting Andrea Scolari <a....@ticino.com>:

[snip] 
> 
> Could you please help me?
> I need to access to the user name parameter after the authentication,
> nut i don't know how. I' ve read many posts but i didn't find what i'm
> looking for.
> thanks.
> Roberto
> 

Did you put the parameter in session?
In my auth framework file i have:

<select dbcol="username" request-param="username" to-session="username"/>

so i can access it in my xsp (as Andrea sugeested), with modules in sitemap, 
in JSP and actions.
PS i'm italian too, if you need.

-- 
Ing. Giancarlo Rosso  
     MCR Srl
 rossog@overweb.it  

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


Re: [help] access parameters

Posted by Roberto Fornasiero <ro...@esplorasrl.com>.
ciao!
ho provato con i tag XSP che mi hai detto ma non riesco comunque ad accedere
alla variabile, il parametro in questione non esiste. ho provato anche a
cambiare il nome ( mi pare che si chiami ID e non username ), ma non cambia
nulla.
a te funziona? che versione di cocoon usi?
grazie ancora!
Roberto

----- Original Message ----- 
From: "Andrea Scolari" <a....@ticino.com>
To: <us...@cocoon.apache.org>
Sent: Thursday, October 02, 2003 11:22 AM
Subject: RE: [help] access parameters


> Hello Roberto!
>
> If you're using XSP, is simple:
>
> String username = <xsp-request:get-parameter name="username"/>;
>
> Of course you need to define the xsp:request namespace in the xsp:page
> tag as following:
>
> <xsp:page language="java"
> ...(others declarations)
> xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> >
>
> Greetings
>
> Andrea Scolari
> (Se hai bisogno di aiuto, parlo italiano...)
>
>
> -----Original Message-----
> From: Roberto Fornasiero [mailto:roberto@esplorasrl.com]
> Sent: giovedì, 2 ottobre 2003 10:35
> To: users@cocoon.apache.org
> Subject: [help] access parameters
>
>
> Could you please help me?
> I need to access to the user name parameter after the authentication,
> nut i don't know how. I' ve read many posts but i didn't find what i'm
> looking for.
> thanks.
> Roberto
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


RE: [help] access parameters

Posted by Andrea Scolari <a....@ticino.com>.
Hello Roberto!

If you're using XSP, is simple:

	String username = <xsp-request:get-parameter name="username"/>;

Of course you need to define the xsp:request namespace in the xsp:page
tag as following:

	<xsp:page language="java"
		...(others declarations)
		xmlns:xsp-request="http://apache.org/xsp/request/2.0"
	>

Greetings

Andrea Scolari
(Se hai bisogno di aiuto, parlo italiano...)


-----Original Message-----
From: Roberto Fornasiero [mailto:roberto@esplorasrl.com] 
Sent: giovedì, 2 ottobre 2003 10:35
To: users@cocoon.apache.org
Subject: [help] access parameters


Could you please help me?
I need to access to the user name parameter after the authentication,
nut i don't know how. I' ve read many posts but i didn't find what i'm
looking for.
thanks.
Roberto


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