tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <>
Subject Re: WebApps sharing uploaded files
Date Tue, 04 Oct 2011 08:44:29 GMT

Hello André,

> Do you mean that you are going to create a new JSP for every new file
> someone may ever upload?

> Or do they always upload the same file "f.txt"? 

I understand your being puzzled... my bad:
the example I posted is oversimple but it works if tested!

In reality, the "c:choose" is "dynamic" in the JSPs:
it is part of a loop which loops through a dynamic list of attachments.

And yes you're right, contrary to my original description,
there is not a unique "uf" directory storing both the attachments of "w1"
and those of "w2".
Some attachments are in "w1\uf1", all the others are in "w2\uf2" (it's a

That solution is quite good because:
- there are no file duplicates,
- the JSPs are the same,
- I just need a switch inside of them to pick the attachments in the right
directory according to a test.
What's interesting is that, in the same servlets container, one WebApp "has
access" to another WebApp through "/w1/uf1/f.txt" "/w2/uf2/f.txt" type of

Thank you for your interest and best regards,
View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message