You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Patrick Herber <pa...@arpage.ch> on 2002/12/09 10:27:25 UTC

Sitemap problem using RequestParamAction

Hi, I have a problem using the RequestParamAction.

I have the following pipe:

<map:match pattern="*-*.html">
	<map:select type="method">
    		<map:when test="POST">
    			<map:act set="form">
				<map:parameter name="descriptor"
value="descriptors/{2}.xml"/>
				<map:act set="process">
					<map:parameter name="descriptor"
value="descriptors/{../2}.xml"/>
					<map:act type="request">
						<map:parameter
name="parameters" value="true"/>
						<map:redirect-to
uri="{../../../1}.html?{../../../1}.id={{../../../1}.id}"/>
					</map:act>
				</map:act>
			</map:act>
    		</map:when>
	</map:select>
	<map:aggregate element="site">
		<map:part src="cocoon:/book-{1}.dxml"/>
	     	<map:part src="cocoon:/tab-{1}.xml"/>
	     	<map:part src="cocoon:/body-{1}.dxml" label="content"/>
	</map:aggregate>
	<map:call resource="skinit">
	      <map:parameter name="type" value="site2xhtml"/>
	      <map:parameter name="dir" value=""/>
	      <map:parameter name="resource" value="{0}"/>
	</map:call>
</map:match>

In this pipe, the "problematic" row/command is the following:
<map:redirect-to
uri="{../../../1}.html?{../../../1}.id={{../../../1}.id}"/>

I would expect from it that if I send a request to, for example,
"login-mailaddress.html", including a parameter "login.id=1", the result
woul be a redirect to "login.html?login.id=1".
Instead I get "login.html?login.id=.id}".

In my sitemap I have a similar case where I have 
<map:redirect-to uri="{../1}.sdhtml?id={{../1}.id}"/>
and in this case it works fine.
Sincerly I don't see any difference.
Could you me kindly help?

Thanks a lot.
Have a nice day.
Patrick




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>