Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Submitting a variable amount of form data

Richard Sayre

2007-07-29

Replies:

I have a form that can have 1 to many 'Name' text fields. In struts
2 how do I set up the action so it can automatically grab the values
that are in those fields?

If I had 1 name field I would just put a name variable in the Action
Class and create a setter and getter for it. How do I do this with
multiple names?

Thanks,

Rich

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.