cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Chávez <ccha...@agssa.net>
Subject Re: How do you submit repeater values to an ESQL Query Page? (through HTML)
Date Tue, 30 Nov 2004 22:57:55 GMT

Jonathan_Leaders@sil.org Escribio :-)
> I have an HTML form that has a variable amount of fields. Because the
> number of fields (and thus their field names) are unknown at submission,
> how can I write an XSP page that will take the dynamic content? (The
> dynamic content however, is deducible, either by DOM tree, or local
> javascript variables) And the field names are standardized (e.g. "input1",
> "input2", "input3" etc. to and unknown n)

 Hi Jonathan.

 you can create several input field with the same name: for example "name"
 and you can create a array over that input field :
String[ ] strName = <xsp-request:get-parameter-values name="name"
as="array"/>

 later you can iterate over the elements of array.

 Cheers.

-- 
Carlos Chávez

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message