Re: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware Implementation Issue

Lukasz Lenart <[email protected]> Wed, 14 May 2025 08:08:56 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkPeFmcnwe5_xv1uS8bxvBEW44aTn3s0fHT2nui7SJtONg@mail.gmail.com>
sob., 10 maj 2025 o 07:09 Jesus Moreno <[email protected]> napisał(a):
> 2025-05-09 01:00:25 WARN File:79 - Struts has detected a file upload UI tag
> (s:file) being used without a form set to method 'POST'
> (Despite <s:form method="POST" enctype="multipart/form-data"> being
> correctly declared)

This can be related to cached JSP files, please remove them from the
container "temp" folder or "work" folder.
https://cwiki.apache.org/confluence/display/WW/Struts+6.x.x+to+7.x.x+migration#Struts6.x.xto7.x.xmigration-Temp/WorkdirectoryofApplicationServer/ServletContainer

> struts.xml:
> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 6.5//EN"
>     "https://struts.apache.org/dtds/struts-6.5.dtd">

There is no such version as 6.5, use 6.0 instead
https://struts.apache.org/dtds/


Cheers
Łukasz