[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: Re: FileUpload class not working with Tomcat 10.1
From: Chuck Caldarale <n828cl () gmail ! com>
Date: 2024-04-23 22:44:08
Message-ID: 137C436F-A848-4B94-A1AE-F87E728FBE8F () gmail ! com
[Download RAW message or body]
>>> <servlet>
>>> <servlet-name>uploadfile</servlet-name>
<snip/>
>>> </servlet>
>>> <servlet-mapping>
>>> <servlet-name>uploadfile</servlet-name>
>>> <url-pattern>/schDistImportResults.jsp</url-pattern>
>>> </servlet-mapping>
The first servlet is named "uploadfile".
> On Apr 23, 2024, at 12:42, Mark Foley <mfoley@novatec-inc.com> wrote:
>
> Now I need to add another program to the system that does file uploads. I
> created another <server> definition in WEB-INF/web.xml following the original:
>
> <servlet>
> <servlet-name>uploadfile</servlet-name>
<snip/>
> </servlet>
> <servlet-mapping>
> <servlet-name>uploadfile</servlet-name>
> <url-pattern>/1099R-Etrans.jsp</url-pattern>
> </servlet-mapping>
This second servlet is also named "uploadfile".
> That didn't work so well. Now, any and all programs using the fileupload
> function launches this 2nd program 1099R-Etrans.jsp. It appears that this
> second <servlet> definition replaces the first.
You gave them the same names, so the second one wins...
What magic were you expecting to differentiate between the two?
- Chuck
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic