On Wed, 2005-03-02 at 17:48, Gawde, Kiran wrote:
> Note the tag. It should be:
>
> Test.xsp
> <xsp:page language="java" xmlns:esql="http://apache.org/cocoon/SQL/v2"
> 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">
> <page>
> <images>
> <xsp:request:get-parameter name="p"/>
Still messing up colons and hyphens. It must be:
<xsp-request:get-parameter name="p"/>
> </images>
> </page>
> </xsp:page>
>
> -----Original Message-----
> From: Andreas Busch [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 02, 2005 8:34 AM
> To: [email protected]
> Subject: RE: XSP and parameters
>
> Thank's a lot for the example
> but I can't get it work
>
> My test:
>
> Test.xsp
> <xsp:page language="java" xmlns:esql="http://apache.org/cocoon/SQL/v2"
> 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">
> <page>
> <images>
> <xsp:request-get-parameter name="p"/>
> </images>
> </page>
> </xsp:page>
>
>
> Sitemap:
> <map:match pattern="media.xml">
> <map:generate src="test1.xsp" type="serverpages">
> <map:parameter name="use-request-parameters" value="true" />
The map:parameter is useless here. XSPs can always access the request
parameters, either using the xsp-request logicsheet or as Java
expression <xsp:expr>request.getParameter("p")</xsp:expr>.
use-request-parameters is a configuration parameter for the stylesheet
transformer to expose all request parameters as XSL variables.
> <!--map:parameter name="pg"
> value="{request-param:p}"/-->
> </map:generate>
> <map:serialize type="xml" />
> </map:match>
>
> Request is: ..../media/media.xml?p=2
>
HTH, Alfred.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]