alright, got it!
I do now not read in the POST parameter in the sitemap, I read it in the
flowscript that i load, in the function edit
The code for loading the parameter is:
====================================================================
var PartEdit = cocoon.request.getParameter("GroupOfParts");
====================================================================
Thanks for help.
JLe wrote:
>
> Do I have to make the request-attr input module know to cocoon in the
> sitemap or so?
> The GroupOfParts parameter is alwas "null".
>
>
>
> Jeroen Reijn-3 wrote:
>>
>> Hi JLEO,
>>
>> the 'request-attr' component is an input module. See [1] for more
>> information. You should be able to read POST request attributes with it
>> as well. What doesn't work?
>>
>> [1]http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/RequestAttributeModule.html
>>
>> Regards,
>>
>> Jeroen Reijn
>>
>>
>>
>> JLe wrote:
>>> Hi Guys,
>>>
>>> I have a form in HTML:
>>> ==============================================================================
>>> <html>
>>> <head>
>>> ...
>>> </head>
>>> <body>
>>> ...
>>> <form method="GET" action="matchme/edit" name="GroupOfParts">
>>> <input value="anything1" name="GroupOfParts"
>>> type="radio">anything1<br>
>>> <input value="thing1" name="GroupOfParts"
>>> type="radio">track 1<br>
>>> <input value="thing2 " name="GroupOfParts"
>>> type="radio">track 2<br>
>>> <input value="Edit" type="submit">
>>> </form>
>>> ...
>>> <body>
>>> </html>
>>> ===============================================================================
>>>
>>> and I match this in the sitemap:
>>>
>>> ===============================================================================
>>> <map:match pattern="matchme/edit">
>>> <map:parameter name="GroupOfParts"
>>> value="{request-attr:GroupOfParts}"/>
>>>
>>> <map:call function="edit"/>
>>> </map:match>
>>> ===============================================================================
>>>
>>> as you can see, I tried the request-attr thing, that I found in this
>>> mailing-list, but I would have to enter this Componenten in the sitemap
>>> Components. It this a SELECTOR?
>>>
>>> ===============================================================================
>>> <map:selector name="set-request-attr"
>>> src="org.apache.cocoon.selection.RequestAttributeSelector"/>
>>> ===============================================================================
>>>
>>> did not work, is this request-attr thing the RequestAttributeSelector?
>>>
>>>
>>> Or is there another way of reading a POST parameter in the Sitemap?
>>>
>>> Regards, JLEO
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/POST-parameter-in-Sitemap-tp19158771p19161107.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]