cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: requestURI contains no value
Date Thu, 15 May 2003 08:37:17 GMT
Hubert Holtz wrote:

> Hy all,
> 
> I need the whole request URL in my XSL and tried the following,using
> this post from Joerg in the mail archive:
> 
> 
>>This action already exists:
>>http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/RequestParamAction.html.
You only have to use it ;-)

At least in Cocoon 2.1 you don't need the RequestParamAction
and can just use {request:requestURI} in your sitemap.
(does this already work in Cocoon 2.0.3?)


>>
>><map:match pattern="test">
>> <map:generate src="anysrc"/>
>> <map:act type="reqparamaction">
>>   <map:transform src="test.xsl">
>>     <map:parameter name="reqUri" value="{requestURI}"/>
>>   </map:transform>
>> </map:act>
>> <map:serialize/>
>></map:match>
>>
>>
>>This action must be declared in the <map:actions/> section of the
>><map:components/> section at the top of the sitemap:
>>
>><map:action name="reqparamaction"
>>src="org.apache.cocoon.acting.RequestParamAction"/>
>>
>>Regards,
>>
>>Joerg
> 
> 
> I've created a variable (   <xsl:variable name="currentURL"><xsl:value-of select="$request_uri"/></xsl:variable>
 )
> which should contain the value of the parameter in y XSL file (<xsl:param name="request_uri"/>)

That should be <xsl:param name="requestURI"/>

HTH, Andreas

> 
> <xsl:value-of select="$currentURL"/>
> 
> outputs no value, but why?
> 
> I'm using Cocoon 2.0.3 on Tomcat 4.1.
> 
> Any ideas?
> 
> Thanks,
> Steve



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


Mime
View raw message