Thank you Zoran and I appreciate your assistance, but I believe we are
tackling the problem with a very small application, whereas what we
actually need is to implement or replace the file upload functionality from
version 2.5 to version 7.0.3 in a larger application, where we already have
almost 1
Thanks for that.
It doesn't look like you have the same issue we did. I wish I could be
of more help.
I can only suggest start with example app working and then implement
your requirements on a step by step basis.
In the end that's what helped us identify the issue and get it working.
Z.
Sure, my web.xml looks like this:
https://jakarta.ee/xml/ns/jakartaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd";
version="6.0">
Struts Blank
Sure, my web.xml looks like this:
https://jakarta.ee/xml/ns/jakartaee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd";
version="6.0">
Struts Blank
Hi Jesus,
What does your web.xml look like with regards to the struts filters? We
had a similar issue which was resolved by moving to the combined
StrutsPrepareAndExecuteFilter. Sitemesh also played a part in our issue,
but I think by what you are seeing it's worth trying.
Z.
On 1/6/2025 6:
Hi Lukasz, thanks for your appreciated comments.
I would like to explain in more detail what we have done to try to find the
problem and solve it. Here the context:
This is my environment:
- Struts Version: 7.0.3
- Java Version: 17
- Servlet Container: Apache Tomcat 10.1.36
- Key Dependencies (p
sob., 10 maj 2025 o 07:09 Jesus Moreno 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 being
> correctly declared)
This can be related to cached JSP files, please remove them from the
c
urs is not.
> > >
> > > Best regards
> > > Ute
> > >
> > > > Gesendet: Samstag, 10. Mai 2025 um 18:45
> > > > Von: "Jesus Moreno"
> > > > An: user@struts.apache.org, "Struts Users Mailing List"
> > >
> > > I do not know about this "basicStack" you copied from the documentation
> > > > example.
> > > > b)
> > > >
> > > >
> > > >
> > > > Your saveDir looks strange to me.
> > > > I use the default sa
@struts.apache.org, "Struts Users Mailing List"
> >
> > Betreff: Re: Aw: File Upload Failure in Struts 7.0.3 Migration -
> > UploadedFilesAware Implementation Issue
> >
> > Ohh sorry about my current configuration that I shared but I was trying
> > many op
etContent() ).toPath(), targetPath,
> > StandardCopyOption.REPLACE_EXISTING );
> > 4.
> > You did not give much info on your jsp.
> > Here is my part:
> >
> > Perhaps you can strip down with less struts.xml configuration to find a
> > solution to your prob
You did not give much info on your jsp.
> Here is my part:
>
> Perhaps you can strip down with less struts.xml configuration to find a
> solution to your problem.
> Good luck
> Ute
>
>
> > Gesendet: Samstag, 10. Mai 2025 um 05:42
> > Von: "Jesus Moreno&quo
o your problem.
Good luck
Ute
> Gesendet: Samstag, 10. Mai 2025 um 05:42
> Von: "Jesus Moreno"
> An: user@struts.apache.org
> Betreff: File Upload Failure in Struts 7.0.3 Migration - UploadedFilesAware
> Implementation Issue
>
> I'm migrating an application from
I'm migrating an application from Struts 2.5 to 7.0.3 and encountering
persistent issues with file upload functionality despite following the
documentation.
The UploadedFile object remains null in my action class, even with:
- Correct UploadedFilesAware implementation
- Proper multipart form conf
14 matches
Mail list logo