Hi,
I have a form with an uploaditem to send a file to a servlet via typical submit. It works. File is sent to the server, as well as some other parameters on hiddenitems.
Now I want to process multiple uploads at once. I'm storing DynamicForm's on an ArrayList, say uploadForms, so I can do this later on:
But this won't work. getFields() for each form returns me the FormItems with the right values (as well as getTarget returns the right URL), but submitForm() just does not call my servlet anymore.
I guess this is because, the time I call submitForm(), the form itself is now drawn. If I call draw() before, it does call the URL, but every field value is wiped out, so this is not an option either.
Does anyone know how make submitForm() work for an array of DynamicForms?
Thanks in advance
I have a form with an uploaditem to send a file to a servlet via typical submit. It works. File is sent to the server, as well as some other parameters on hiddenitems.
Now I want to process multiple uploads at once. I'm storing DynamicForm's on an ArrayList, say uploadForms, so I can do this later on:
Code:
for (DynamicForm form : uploadForms) { form.submitForm(); }
I guess this is because, the time I call submitForm(), the form itself is now drawn. If I call draw() before, it does call the URL, but every field value is wiped out, so this is not an option either.
Does anyone know how make submitForm() work for an array of DynamicForms?
Thanks in advance
Comment