Lauri,

On 6/10/23 03:18, Lauri wrote:
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.

Tomcat 10 is very stable, and will likely behave the same as Tomcat 11 will. The problem is that you are fighting against the API-switchover from Java EE to Jakarta EE which is confusing to everybody. The good news is that Tomcat supports that switchover in a very elegant fashion.

-chris

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



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

Reply via email to