See the documentation on using indexed properties [1] for more details.

L.

[1] http://struts.apache.org/1.2.x/faqs/indexedprops.html

This seems like it should work. I created two accessors to the form that had an index parameter. Struts could not locate the getter. I ended up creating a class like this:

public class FormFileWrapper {
   private FormFile file;
   public FormFile getFile() {
       return file;
   }
   public void setFile(FormFile file) {
       this.file = (FormFile)file;
   }
}

Created array of of FormFileWrapper called doc[] (and added the corrsponding accessors to the form) the size of the number of documents expected. Then used this jsp:

           <logic:iterate id="doc" name="Documents">
           <html:file indexed="true" name="doc" property="file"/>
           </logic:iterate>

This worked. Thanks for your help!
/Jeremiah


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

Reply via email to