Hello,

Thank you for reading my post.

o I have two WebApps "w1" and "w2" (under the Tomcat "webapps" directory).
o Both "w1" and "w2" contain (at least) a JSP which allows to upload files
to the server.
o Presently, the uploaded files are stored:
- in the "w1\uf1\" directory for "w1",
- in the "w2\uf2\" directory for "w2".
(So: each WebApp has its own directory for uploaded files storage).
=> I need the two Webapps to store their uploaded files in the same
directory, say "uf".

Let's say that: 
- we have created "uf" somewhere (where?),
- "uf" contains a successfully uploaded file "f.txt",
- I have a JSP "foo_1.jsp" in "w1" and a JSP "foo_2.jsp" in "w2".

I'd like:
- to put an anchor in "foo_1.jsp" which links to "f.txt".
----------------------------------------------------------------------
< a href="?_1/f.txt">Link 1</ a>
----------------------------------------------------------------------
- to put an anchor in "foo_2.jsp" which links to "f.txt".
----------------------------------------------------------------------
< a href="?_2/f.txt">Link 2</ a>
----------------------------------------------------------------------
(I want the files to open properly when the each link is clicked).

1) If it's possible, where shall I create "uf"?
2) What shall I replace "?_1" and the "?_2" with in the "href" anchor
properties?

Please help me.
Best regards,
--
Léa
-- 
View this message in context: 
http://old.nabble.com/WebApps-sharing-uploaded-files-tp32570911p32570911.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

Reply via email to