Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E594A7512 for ; Fri, 30 Sep 2011 18:38:16 +0000 (UTC) Received: (qmail 84430 invoked by uid 500); 30 Sep 2011 18:38:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84369 invoked by uid 500); 30 Sep 2011 18:38:13 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 84360 invoked by uid 99); 30 Sep 2011 18:38:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 18:38:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 18:38:06 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R9hxy-00046I-7y for users@tomcat.apache.org; Fri, 30 Sep 2011 11:37:46 -0700 Message-ID: <32570911.post@talk.nabble.com> Date: Fri, 30 Sep 2011 11:37:46 -0700 (PDT) From: =?UTF-8?Q?L=C3=A9a_Massiot?= To: users@tomcat.apache.org Subject: WebApps sharing uploaded files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: lmhelp1@orange.fr X-Virus-Checked: Checked by ClamAV on apache.org 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). =3D> I need the two Webapps to store their uploaded files in the same directory, say "uf". Let's say that:=20 - 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=3D"?_1/f.txt">Link 1 ---------------------------------------------------------------------- - to put an anchor in "foo_2.jsp" which links to "f.txt". ---------------------------------------------------------------------- < a href=3D"?_2/f.txt">Link 2 ---------------------------------------------------------------------- (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=C3=A9a --=20 View this message in context: http://old.nabble.com/WebApps-sharing-uploade= d-files-tp32570911p32570911.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