Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-12 Thread Christopher Schultz
supports that switchover in a very elegant fashion. -chris From: Christopher Schultz Sent: Friday, June 2, 2023 4:45 PM To: 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

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-10 Thread Lauri
more stable version. Kind Regards, Lauri From: Christopher Schultz Sent: Friday, June 2, 2023 4:45 PM To: 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: > @Tho

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-02 Thread Christopher Schultz
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 --- http://xmlns.jcp.org/xml/ns/javaee"; xmlns:

AW: AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-02 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Mark, > -Ursprüngliche Nachricht- > Von: Mark Thomas > Gesendet: Freitag, 2. Juni 2023 14:18 > An: users@tomcat.apache.org > Betreff: Re: AW: Re-Cannot upload an image file from a deployed JSP page in > Tomcat 10 > > On 02/06/2023 08:20, Thomas Hoffmann

Re: AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-02 Thread Mark Thomas
On 02/06/2023 08:20, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello Lauri, -Ursprüngliche Nachricht- Von: Lauri Gesendet: Freitag, 2. Juni 2023 08:58 An: Tomcat Users List Betreff: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10 @Thomas: I have made a test

AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-02 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Lauri, > -Ursprüngliche Nachricht- > Von: Lauri > Gesendet: Freitag, 2. Juni 2023 08:58 > An: Tomcat Users List > Betreff: Re-Cannot upload an image file from a deployed JSP page in Tomcat > 10 > > @Thomas: > > I have made a test using the reques

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-01 Thread Lauri
leName()); --- @Mark: Refering to: https://stackoverflow.com/questions/37965890/add-annotation-to-jsp I do not upload a (image) file to the database, but on the server (/tmp). Kind Regards ____________________ From: Mark Thomas Sent: Thursday, June 1, 2023 11:29 AM To: users@tomcat.

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-01 Thread Mark Thomas
On 01/06/2023 10:18, Torsten Krah wrote: Am Donnerstag, dem 01.06.2023 um 08:52 + schrieb Lauri: You mention a servlet part, but I do not use a servlet. All the code is contained in the JSP page. You need to divide that code in a JSP and in your upload servlet as you need to provide the @M

AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-01 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, > -Ursprüngliche Nachricht- > Von: Torsten Krah > Gesendet: Donnerstag, 1. Juni 2023 11:18 > An: users@tomcat.apache.org > Betreff: Re: Re-Cannot upload an image file from a deployed JSP page in > Tomcat 10 > > Am Donnerstag, dem 01.06.2023 um 08:52 +

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-01 Thread Torsten Krah
Am Donnerstag, dem 01.06.2023 um 08:52 + schrieb Lauri: > > You mention a servlet part, but I do not use a servlet. > > All the code is contained in the JSP page. You need to divide that code in a JSP and in your upload servlet as you need to provide the @MultipartConfig on that servlet which

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-06-01 Thread Lauri
esday, May 31, 2023 11:53 AM To: users@tomcat.apache.org Subject: Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10 Am Mittwoch, dem 31.05.2023 um 09:42 + schrieb Lauri: > But my initial question remains, what should have to modify on my > posted JSP page ? We alr

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Torsten Krah
Am Mittwoch, dem 31.05.2023 um 09:42 + schrieb Lauri: > But my initial question remains, what should have to modify on my > posted JSP page ? We already posted you with the docs where you can read about the necessary changes you need to make to your page, it is all written there (just call get

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Lauri
users@tomcat.apache.org Subject: Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10 Am Mittwoch, dem 31.05.2023 um 09:14 + schrieb Lauri: > So, I guess I need to re-write my JSP page as if it was for Java EE > for Tomcat 9 (or earlier versions) for instance, correct? Why would

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Torsten Krah
Am Mittwoch, dem 31.05.2023 um 09:14 + schrieb Lauri: > So, I guess I need to re-write my JSP page as if it was for Java EE > for Tomcat 9 (or earlier versions) for instance, correct? Why would you want to do that? Just rewrite it to work with the jakarta api and it will work with tomcat 10.

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Torsten Krah
Am Mittwoch, dem 31.05.2023 um 09:18 + schrieb Thomas Hoffmann (Speed4Trade GmbH): > http://www.java2s.com/example/java-api/javax/servlet/http/httpservletrequest/getparts-0-0.html There is also a whole example app on the link you already provided Thomas: https://docs.oracle.com/javaee/6/tutor

AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, > -Ursprüngliche Nachricht- > Von: Lauri > Gesendet: Mittwoch, 31. Mai 2023 11:04 > An: Tomcat Users List > Betreff: Re-Cannot upload an image file from a deployed JSP page in Tomcat > 10 > > Ho Thomas, > > I still do not understand everything. &

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Lauri
t;. What is webapps-javaee ? How can I use it if I have a JSP page for Java EE. Kind Regards, Lauri From: Mark Thomas Sent: Tuesday, May 30, 2023 9:22 AM To: users@tomcat.apache.org Subject: Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Torsten Krah
Am Mittwoch, dem 31.05.2023 um 09:04 + schrieb Lauri: > What modules should I use if these are wrong ? None, it is already included in the servlet api. Like already written, please read e.g.: https://docs.oracle.com/javaee/6/tutorial/doc/gmhba.html kind regards Torsten -- ---

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-31 Thread Lauri
Regards, Lauri ____ From: Thomas Hoffmann (Speed4Trade GmbH) Sent: Tuesday, May 30, 2023 8:24 AM To: Tomcat Users List Subject: AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10 Hello Lauri, > -Ursprüngliche Nachricht- > Von

Re: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-30 Thread Mark Thomas
dle file uploads. Mark Kind Regards, Lauri From: Mark Thomas Sent: Monday, May 29, 2023 5:44 PM To: users@tomcat.apache.org Subject: Re: Cannot upload an image file from a deployed JSP page in Tomcat 10 On 29/05/2023 10:36, Lauri wrote: From Tomcat 10 a

AW: Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-29 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Lauri, > -Ursprüngliche Nachricht- > Von: Lauri > Gesendet: Dienstag, 30. Mai 2023 08:20 > An: Tomcat Users List > Betreff: Re-Cannot upload an image file from a deployed JSP page in Tomcat > 10 > > Hi Thomas, > > I get returned "Page no foun

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-29 Thread Lauri
Hi Thomas, I get returned "Page no found" when I navigate through: https://www.linuxquestions.org/questions/linux-server-73/fileupload-class- I don't understand the relation between the code in my JSP page and the link you provided me: https://docs.oracle.com/javaee/6/tutorial/doc/gmhba.html W

Re-Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-29 Thread Lauri
mFactory" %> What's wrong with this ? e) Option 1, 2, 3 The JSP page has not been migrated from Tomcat X to Tomcat 10. It has been directly deployed in Tomcat 10. What is wrong in the code of my JSP page ? Thanks by advance for any indications. Kind Regards, Lauri

Re: Cannot upload an image file from a deployed JSP page in Tomcat 10

2023-05-29 Thread Mark Thomas
On 29/05/2023 10:36, Lauri wrote: From Tomcat 10 and onwards there has been a move from Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse Foundation, the primary package for all implemented APIs has changed from javax.* to jakarta.*. Note the above. I have these li