|
Thanks, Jeroen for the quick reply.
As far as I know the request path is part of the request Object. Just
like the request protocol, server , method etc. I
mean, one part of the HTTP request is its path. I think sometimes this is
referenced to as the "Context" of the request - but I am not
sure.
I will pass it as you offer- with a
parameter.
Thanks
again
Elad
Von: Jeroen Reijn [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Mai 2005 16:02 An: [email protected] Betreff: RE: How to get the request path from a flowscript Hi
Elad,
in you
case number 7 is not a request object.
What
you can do is acces it by passing it from your sitemap:
<map:match pattern="*/*/*">
<map:call function="test">
<map:parameter name="id"
value="{3}"/>
</map:call>
</map:match>
From
your flowscript you can get your id like:
function test()
{
var myId = cocoon.parameters["id"];
print("current id: " + myId );
}
if you
pass your id like a request parameter ( http://blabla/info?id=7
) you can acces the request object:
then
the map:parameter will be like
<map:parameter name="id"
value="{request-param:id}"/>
or you
can call it from your flowscript with:
cocoon.request.get("id");
You
can find some more information about flow and the request object
at:
Greetz,
Jeroen
|
Title: How to get the request path from a flowscript
