I suppose that you need something like this:
<xsp:structure>
<xsp:include>org.apache.cocoon.environment.Request</xsp:include>
</xsp:structure>
<xsp:logic>
String selectedvalues[] = request.getParameterValues(nameOfCheckbox);
</xsp:logic>
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of oceatoon
Sent: 24mm2004 11:09
To: [EMAIL PROTECTED]
Subject: Re: xsp get parameter list checkbox
Andres Taborda wrote:
> Hello list
>
> some use know howto get the values of an list of form generated by
> checkbox.
>
>
> example
>
> <form>
> <checkbox name="elemento[]" value="1">
> <checkbox name="elemento[]" value="2">
> ....
>
> </form>
>
> in xsp explain with
> <xsp-request:get-parameter-values name ...
> how can to capture or read this array with xsp-request
>
>
> Thanks very much.
>
>
My solution won't really help you, coz it doesn't work but if we get the
answer, we'll both have a solution :)
In the selection list documentation, it seems you can create a selection
list with the checkbox attribute in the template file
(like <fi:styling list-type="listbox"/>), and then retrieve the result as
such.
The problem is I didn't manage to get this list-type to work, those anybody
know about this???
does it work ??
Tibor
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]