Hello Rainer,
Thanks for replying on my thread
http://www.nabble.com/Accesing-url-params-in-flow-using-servlet%3A-protocol-Cocoon-2.2-td16092939.html#a16092939
Accesing url params in flow using servlet: protocol Cocoon 2.2
I did have a look at RawRequestParameterModule, but it doesn't work...it
doesn't keep URL encoding and returns spaces instead.
I did try an alternative/hack which seems to work. Instead of <map:part
src="servlet:/some_pipeline/{1}/{2}?q={raw-request-param:q}"/> I have used
<map:part
src="servlet:/some_pipeline/{1}/{2}?q={url-encode:{request-param:q}}"/>
It seem to work. Hope that helps.
Daria
Rainer Pruy wrote:
>
> Hallo,
> again hitting real world...
>
> I'trying to get some request parameters to their final destination (a
> local generator)
> however I always end up with decoded ones.
>
> The whole topic starts out from a js function handling a form and at some
> point is calling (showing the effective resulting string here)
>
> cocoon.redirectTo("search?modeinfo=a+b", {});
>
> (The '+' resulting from using URLEncode("a b"))
>
> This redirect call ends up with a pipeline resulting in the following
> generator call:
>
> <map:generate
> src="servlet:/page/research/{1}?modeinfo={raw-request-param:modeinfo}"
> type="jx"/>
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
View this message in context:
http://www.nabble.com/C2.2%3A-undecoded-URI-params-tp16083312p16126516.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]