tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Léa Massiot <lmhe...@orange.fr>
Subject Re: WebApps sharing uploaded files
Date Tue, 04 Oct 2011 08:42:50 GMT

Hello André,

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

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

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
partition).

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
addressing.

Thank you for your interest and best regards,
--
Léa
-- 
View this message in context: http://old.nabble.com/WebApps-sharing-uploaded-files-tp32570911p32587503.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message