You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christopher Watson <cw...@taraserv.demon.co.uk> on 2001/12/14 16:09:40 UTC
How do I use request parameter in sitemap redirect ?
Can anyone help?
I'd like to use a redirect (yes I know it's probably bad design that's led
me here ! :)
to a page which uses a request parameter.
in other words I'm trying to do something like
<map:match pattern="myPattern">
<map:act type="myDatabaseAction">
<!-- this bit works fine and uses
request.getParameter("myRequestParameterName"); fine -->
<map:parameter name="descriptor" value="context://myContextLocation"/>
</map:act>
<map:redirect-to
uri="mytargetpage?myParameter={myRequestParameterName}"/>
<!-- mytargetpage doesn't get anything from
request.getParameter-->("myParameter");
</map:match>
I'd like to pass the existing request paremeter on to the page being
redirected to.
Could anyone tell me how to do this, or has any other suggestions.
Thanks
Christopher
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>