JSPで複数のファイルをアップロードする方法は?
8 つの質問のリストがあり、各質問に添付ファイルが必要です。フォームを送信すると、次のエラーが表示されます。これを解決するのを手伝ってください
"Caused by: java.lang.IllegalArgumentException: Cannot invoke
com.usrinfo.form.AssessmentForm.setAttatchment on bean class
'class com.usrinfo.form.AssessmentForm' - argument type mismatch -
had objects of type "java.util.ArrayList" but expected
signature "org.apace.struts.upload.FormFile"
これは私の入力タイプです:
<input class="" type='file' style="display:none;" name="attachment" id="<%=q.getId()%>file"/>
これが私の行動です
action="xxx.do" method="post" enctype="multipart/form-data">