Re: Undefined number of input parameter in a form.

2007-02-08 Thread Dave Newton
--- Pierre-Alain Branger <[EMAIL PROTECTED]> wrote: > type="org.apache.struts.action.DynaActionForm"> > name="nameParam" > type="java.util.ArrayList"/> ? Sorry; I really don't remember :( d. ___

Re: Undefined number of input parameter in a form.

2007-02-08 Thread Pierre-Alain Branger
Well, I have tried the following: With the following velocity code: #set( $i = 0 ) #foreach ($param in $dataApplication.paramsList ) $param.nameparam : $param.descparam #set( $i = $i +1 ) #end I obtain the following HTML code: And I try to retreive my p

Re: Undefined number of input parameter in a form.

2007-02-08 Thread Pierre-Alain Branger
Great! I'll test it and let you learn! Thanks a lot, Pierre > --- Pierre-Alain Branger <[EMAIL PROTECTED]> wrote: >> Yes I have seen that it is possible to use an >> ArrayList in DynaActionForm. >> [...] > > > > You may need to just add an index from your iteration > to the input tag. > > http:

Re: Undefined number of input parameter in a form.

2007-02-08 Thread Dave Newton
--- Pierre-Alain Branger <[EMAIL PROTECTED]> wrote: > Yes I have seen that it is possible to use an > ArrayList in DynaActionForm. > [...] You may need to just add an index from your iteration to the input tag. http://struts.apache.org/1.2.9/faqs/indexedprops.html might provide more insight t

Re: Undefined number of input parameter in a form.

2007-02-08 Thread Pierre-Alain Branger
Hi again, Yes I have seen that it is possible to use an ArrayList in DynaActionForm. Maybe you ll be able to enlight me: - When I use an ArrayList all controls of the same name () added to this list inclusding the empty ones, isn'it - Admitting it do, how can I retreive the correspondance between

Re: Undefined number of input parameter in a form.

2007-02-08 Thread Dave Newton
--- Pierre-Alain Branger <[EMAIL PROTECTED]> wrote: > I investigated on DynaActionForm but it does not > seem that I can do that with it. You can't use an array in DynaActionForm? Dave Don't pick lemons. See

Undefined number of input parameter in a form.

2007-02-08 Thread Pierre-Alain Branger
Hi everybody, I explain my problem. I am doing an application with struts and velocity that permit to automatically generate my forms. To make simple my form would be something like that: #foreach ($element in $myBean.listofelements ) #end What I need is a way to retreive my