Let me get this right, you have no idea what the field names on the form are 
going to 
be.....you are the developer right?  No matter how dynamic the form is you 
still have to 
create it using something...like some Javascript to create the input fields at 
least.  If you 
are creating the input fields you must know what the names are going to be.  
The only 
exception to this would be if you were asking the user to type in the field 
name and then 
enter a value.  You could do this wih Javascript but I'm really not sure why.

Personally I would create a form bean that catered for every possible field 
name, there 
may be 50 or even 100 fields but the form bean doesn't mind.  (Actually I think 
there is 
a limit in IE, can't remember what it is).  Struts will populate the fields 
that are created.

If you truly have no idea of the fieldnames then there is no point even looking 
at a form 
bean, best to use the getParameterNames() function.

What were you hoping to find?

Kind regards
mc


On 28 Oct 2005 at 12:19, Brian Demers wrote:

> I don't know if thats what i am looking for either?
> 
> My field names could be XXX, YYY, and ZZZ for one submit
> and then AAA, BBB, CCC another.
> 
> There is no way of knowing what parameters i will get.
> 
> -Brian
> 
> On 10/28/05, David Evans <[EMAIL PROTECTED]> wrote:
> > I think this might help:
> > http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html
> >
> >
> > On Fri, 2005-10-28 at 08:15, Brian Demers wrote:
> > > Hello all,
> > >
> > > I am creating a dynamic struts application. I don't think
> > > DynaActionForm is what I am looking for.
> > >
> > > My page contains many input fields which are dynamically generated at
> > > run time.  Is there any way to put these fields into a struts form?
> > > From what I have read, fields for a DynaActionForm need to be defined
> > > in the struts-config (which is not dynamic).
> > >
> > > My other alternative is just to grab the parameters from the request.
> > >
> > > Does anyone have any ideas?
> > >
> > > -Brian Demers
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.362 / Virus Database: 267.12.5/150 - Release Date: 27/10/2005
> 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.5/150 - Release Date: 27/10/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to