In my action class I have an array of String (String[]) field with default getter and setters. Then I have a form that calls this action from a jsp page but I can't figure out how to pass the whole array into the action. I am using the and tags. Just passing the whole array into the tag doesn't work and when I use a loop and pass a single string into the tag (even though the setter takes a String[] and not String) the action class only gets the last value. In the jsp the array is being populated through a pure html element tag.
views:
18answers:
1
A:
Does the answer here: http://stackoverflow.com/questions/1005503/how-to-access-form-array-fields-with-struts2 help?
Nate
2010-08-25 15:47:52