cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaRecords - The home Urban music <...@beya-records.com>
Subject Re: Problems passing parameters
Date Fri, 09 Jan 2004 11:05:42 GMT
Julien,
thanks for your help ;-)

Uzo
On 9 Jan 2004, at 11:04, julien bloit wrote:

> You shoul use
> String user_name = <util:get-sitemap-parameter name="user"/>;
>
> and declare
> xmlns:util="http://apache.org/xsp/util/2.0"
>
> in the xsp:page tag
>
> hth
> julien
>
> ----- Original Message -----
> From: "beyaRecords - The home Urban music" <uzo@beya-records.com>
> To: <users@cocoon.apache.org>
> Sent: Friday, January 09, 2004 11:57 AM
> Subject: Re: Problems passing parameters
>
>
>> Reinhard,
>> what is the correct way to access them?
>>
>> Uzo
>> On 9 Jan 2004, at 10:54, Reinhard Poetz wrote:
>>
>>>
>>> From: beyaRecords - The home Urban music
>>>
>>>> Hi,
>>>> I am passing 2 parameters to an xsp page, but for some reason the
>>>> values are not being pulled into the xsp page.
>>>>
>>>> 1. pipe
>>>> <map:match
>>>> pattern="support/contract-summary">
>>>>
>>>> <map:generate
>>>> type="serverpages" src="xsp/contract-summary.xsp">
>>>> <map:parameter
>>>> name="user" value="test" />
>>>> <map:parameter
>>>> name="pass" value="test" />
>>>> </map:generate>
>>>> <map:serialize type="xml"/>
>>>>
>>>> </map:match>
>>>>
>>>> 2. xsp
>>>>
>>>> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
>>>> xmlns:esql="http://apache.org/cocoon/SQL/v2"
>>>> xmlns:xsp-session="http://apache.org/xsp/session/2.0"
>>>> xmlns:xsp-request="http://apache.org/xsp/request/2.0"
>>>>>
>>>>
>>>>
>>>>
>>>> <section>
>>>> <xsp:logic>
>>>> String user_name = <xsp-request:get-parameter
>>>> name="user" />;
>>>> String user_password =
>>>> <xsp-request:get-parameter name="pass" />;
>>>> </xsp:logic>
>>>>
>>>> Can anybody shed any light on what I may be doing wrong here?
>>>>
>>>> thanks
>>>
>>> you want to read request parameters but you set sitemap parameters
>>> which
>>> are accessed in a different way.
>>>
>>> --
>>> Reinhard
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message