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 D3BFB9B1A for ; Mon, 3 Oct 2011 17:45:28 +0000 (UTC) Received: (qmail 4394 invoked by uid 500); 3 Oct 2011 17:45:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 4295 invoked by uid 500); 3 Oct 2011 17:45:22 -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 4106 invoked by uid 99); 3 Oct 2011 17:45:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 17:45:22 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.86.89.67] (HELO elasmtp-scoter.atl.sa.earthlink.net) (209.86.89.67) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 17:45:14 +0000 Received: from [66.32.180.122] (helo=[192.168.2.50]) by elasmtp-scoter.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1RAmZR-0001c4-Cc for users@tomcat.apache.org; Mon, 03 Oct 2011 13:44:53 -0400 Subject: Re: WebApps sharing uploaded files From: Tim Watts To: Tomcat Users List In-Reply-To: <32583746.post@talk.nabble.com> References: <32570911.post@talk.nabble.com> <32583746.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Organization: Clifton Farm Date: Mon, 03 Oct 2011 13:44:56 -0400 Message-ID: <1317663896.2912.61.camel@dellberry> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: quoted-printable X-ELNK-Trace: 3a5701426d89357f74bf435c0eb9d478f19402e8c03c41ef7e45e195845a02c1ad17c140d6e4c2e4350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.32.180.122 It does? Doesn't that mean you have two distinct copies of f.txt? I thought that's what you were trying to avoid. Or are uf1 and uf2 aliases for the same directory? Or was your goal really to have one JSP that would work in w1 and w2? On Mon, 2011-10-03 at 10:15 -0700, L=C3=A9a Massiot wrote: > Hello, >=20 > I solved my problem: > 1) in WebApp "w1", upload files to the directory "w1\uf1\", > 2) in WebApp "w2", upload files to the directory "w1\uf2\", > 3) then you can have the same JSP "foo.jsp" for both WebApps. > Put one JSP in "w1" and another one in "w2". > The JSP itself contains a switch: > -------------------------------------------------------- > > "> > < a href=3D"/w1/uf1/f.txt">Link 1 > > > < a href=3D"/w2/uf2/f.txt">Link 2 > > > -------------------------------------------------------- >=20 > Best regards, > -- > L=C3=A9a --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org