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
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
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;
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 (Speed4Trade GmbH) wrote:
>
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
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 request.getParts() API, as mentioned
@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;
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
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 + schrieb Lauri:
> > > You
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
I don't ask to fix the code. I wish to understand what is wrong how it can be
possibly solved keeping the format of a JSP page.
You mention a servlet part, but I do not use a servlet.
All the code is contained in the JSP page.
From: Torsten Krah
Sent: Wednesday,
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
Of course, I would prefer to work with Jakarta (that's anyway the trend).
But my initial question remains, what should have to modify on my posted JSP
page ?
Kind Regards,
Lauri
From: Torsten Krah
Sent: Wednesday, May 31, 2023 11:25 AM
To:
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.
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:
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.
>
> I understood the following:
Ho Mark,
I still do not understand everything.
I understood the following:
1)
>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
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
--
Ho Thomas,
I still do not understand everything.
I understood the following:
1)
>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
On 30/05/2023 07:17, Lauri wrote:
Hi Mark,
If I understand well:
a) I should remove the commons*.jar files from my
/u01/tomcat/base/middleware/tomcat10/webapps/TESTS/WEB-INF/lib.
No. commons-fileupload-1.5.jar (in some form) can stay (see option 1).
b) I do not need to have a specific
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 found" when I navigate through:
>
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
Hi Mark,
If I understand well:
a) I should remove the commons*.jar files from my
/u01/tomcat/base/middleware/tomcat10/webapps/TESTS/WEB-INF/lib.
b) I do not need to have a specific configuration for Tomcat 10 to use
servlet-api and jakarta EE packages.
I still do not understand the following:
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
24 matches
Mail list logo