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
-----Original Message-----
From: Messing, Elad [mailto:[EMAIL PROTECTED]
Posted At: Friday, May 13, 2005 3:33 PM
Posted To: Cocoon User List
Conversation: How to get the request path from a flowscript
Subject: How to get the request path from a flowscriptHello All
Newbie question.
In my application, I use an object ID in the URL. I.E. - http://blabla/info/7
In my flowscript, I wish to use the ID (i.e. 7 ).
How can I reference it from the cocoon.request object ?
I searched for the answer, but I couldn't find it. Is it a request attribute ? If so - where can I see the full list of the cocoon request attributes ?Thank you !!
Elad Messing
Software Developer
European Media Laboratory GmbH
Schloss-Wolfsbrunnenweg 33
D-69118 Heidelberg
