I've got a webpage that was using struts1 that I am responsible for upgrading to the latest version of struts2. The conversion hasn't been that arduous, but I am currently stumped with the issue I am facing. The webpage has a file upload section that was working when it was struts1, but now it is causing problems. The user can choose a file just fine, but when the submit button is clicked, the execute method of my action class isn't being hit at all. If the user just clicks the submit button, the execute method gets called normally and I get the result that I expect. I've checked the log files for error messages, but I didn't find any. The closest I found was this: [DEBUG] org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - Removing file vfcForm.fileNameDel name=fileDisplay.pdf, StoreLocation=C:\JBoss\EAP-7.2.0\domain\servers\ir-server\tmp\IR.ear.IR.war\upload_21b9e402_cea6_4fe7_86eb_2154ffadddb7_00003093.tmp, size=487834 bytes, isFormField=false, FieldName=vfcForm.fileNameDel
Here's the relevant (I think) section from the jsp: <s:file name="vfcForm.fileNameDel" id="fileNameDel" title="Browse to Select File" class="choose-a-file" style="height: 35px;"/> <s:submit id="uploadButtonIdDel" name="vfcForm.uploadButtonDel" style=" HEIGHT: 30px; width: 136px;" key="upload.certificate.of.training.button.upload" /> Let me know if any more details are needed. The contents of this message and any attachments may contain privileged and/or confidential information protected from disclosure under the law, including the Health Insurance Portability and Accountability Act (HIPAA). If you received this message in error, please notify the sender by replying to the message and delete the message and any attachments from all storage devices without retaining a copy or using or disclosing to others the contents of this message. Any unauthorized disclosure, distribution, copying, or storage of this message or its attachments is strictly prohibited and may subject you to criminal or civil penalties. No confidentiality or privilege is waived or lost by any transmission errors. Visit our website to learn how we collect, keep, and process private information in accordance with applicable state and federal law. Regardless of content, this e-mail shall not operate to bind any party to or referenced in the email to any order or other contract or amendment or change thereto unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.