cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinh...@apache.org>
Subject RE: Problems passing parameters
Date Fri, 09 Jan 2004 10:54:00 GMT

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


Mime
View raw message