cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre-Yves Landuré <py.land...@dorigo.fr>
Subject Re: XSP and parameters
Date Wed, 02 Mar 2005 15:11:01 GMT
<xsp-request:get-parameter> can help you ;)

example is :


<xsp:page
    xmlns:xsp="http://apache.org/xsp"
    xmlns:util="http://apache.org/xsp/util/2.0"
    xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
    xmlns:xsp-request="http://apache.org/xsp/request/2.0"
    language="java">

    <xsp-request:get-parameter name="pg" />
</xsp:page>
Andreas Busch wrote:

> Sorry for this basic question:
>  
> I try to send a Parameter to a query with the following logic:
>  
> url: ..../media.xml?p=4
>  
> in sitemap:
>
> <map:match pattern="media.xml">
>
> <map:generate src="media.xsp" type="serverpages">
>
> <map:parameter name="pg" value="{request-param:p}"/>
>
> </map:generate>
>
> and in XSP-file :
>
> .....WHERE nr =<esql:parameter><xsp:value-of select="$pg"/>
>                         </esql:parameter>
>
> the parameter is almost empty !
>  
> Any help ?
> Examples welcome !!
>  
> Andreas Busch
>  



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


Mime
View raw message