Hi,
Thanks for all the tips.
It is solved.
I managed to create such a working page in Tomcat 9 (without any specific 
configuration).
I just deployed that same page in Tomcat 10(also without any specific 
configuration), and it works.
For the rest, I will wait for Tomcat 11. I guess it will be a more stable 
version.
Kind Regards,
Lauri

________________________________
From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Friday, June 2, 2023 4:45 PM
To: users@tomcat.apache.org <users@tomcat.apache.org>
Subject: Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 
10

Lauri,

On 6/2/23 02:58, Lauri wrote:
> @Thomas:
>
> I have made a test using the request.getParts() API, as mentioned here:
> https://docs.oracle.com/javaee/6/tutorial/doc/glrbb.html
>
> The test upload application has been modified as:
>
> -- web.xml
> ---
> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee";
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
>                               
> http://xmlns.jcp.org/xml/ns/javaee/web-app_5_0.xsd";


If you want to use Tomcat 10, these are the wrong XML schema references.
You want the Jakarta ones.

> <%@ page import="java.io.*, java.util.*, javax.servlet.*, 
> javax.servlet.http.*" %>

If you want to use Tomcat 10, these are the wrong packages. You want the
Jakarta ones.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to