From users-return-170172-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Oct 02 09:08:28 2007 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 74527 invoked from network); 2 Oct 2007 09:08:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 09:08:27 -0000 Received: (qmail 33413 invoked by uid 500); 2 Oct 2007 09:08:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 33388 invoked by uid 500); 2 Oct 2007 09:08:05 -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 33377 invoked by uid 99); 2 Oct 2007 09:08:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 02:08:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [141.12.192.35] (HELO mail.prostep.com) (141.12.192.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 09:08:05 +0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2929 Importance: normal Priority: normal Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: AW: AW: Using Tomcat API to save single files into a wep app - No redeploy Date: Tue, 2 Oct 2007 11:05:41 +0200 Message-ID: <1CAE170E289AE9419B61D206A2444A3401BA96A0@srv-hermes.PSAD.de> In-Reply-To: <4700FFF9.9000307@christopherschultz.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AW: Using Tomcat API to save single files into a wep app - No redeploy thread-index: AcgENR/kVTMasYIhQi6S/01CWfGJbgAnaHCQ References: <1CAE170E289AE9419B61D206A2444A3401B48CE4@srv-hermes.PSAD.de> <4700F881.2080003@christopherschultz.net> <1CAE170E289AE9419B61D206A2444A3401B48E47@srv-hermes.PSAD.de> <4700FFF9.9000307@christopherschultz.net> From: "Iannetti, Gabriele" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gabrielle, Iannetti, Gabriele wrote: > now I know it's up to use pure Java API for this, and unfortunately=20 > not the servlet engine API. The servlet API doesn't have anything in it that doesn't have to do with = serving dynamic requests. I'm not sure what you were looking for. #I was looking for a way to store files at runtime in a webapp root = folder on the server. > So I have to use a web server to automate the process of storing files = for my purpose. Not necessarily. You can still use Tomcat. You just need to (as many = others on the list have asked about and ultimately implemented) write a = servlet that can serve your uploaded content for you.=20 #I did. Just upload the files into some other directory, and then have your = servlet read them out of that directory. Feel free to use additional = paths, etc. (meaning that you don't need to put every single file in a = flat directory). #That will not work with the other API I have to use...=20 You should be able to change your "other API" to use a URL that does a = loop-back request to Tomcat asking for the files, rather than a URL that = points to a file on the disk. #Here comes the point, the other API reads only files I want to use from = a WebApp folder and it's subfolder in it. #I think I am going to use an other program like a extracter (e.g. 7zip = or something....) to add files to the deployed .war archive file, So I get the data files into it at runtime and have the ability to read = them later from the specific webapp path. #Thanks very much! -Gabriele Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHAP/59CaO5/Lv0PARAsPbAJ0eTw8Ai5GoG0rQygmweE5+rIeVEgCfWOFf wcKhCMf8NhP9QW2ehq0nTFA=3D =3DRG8V -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, = e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ________________________________________________________________________ PROSTEP AG, Dolivostra=C3=9Fe 11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8383 Vorstand: Dr. Bernd P=C3=A4tzold (Vorsitz), Reinhard Betz Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz) ________________________________________________________________________ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org