Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 16371 invoked from network); 23 Jan 2006 15:18:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 15:18:15 -0000 Received: (qmail 88824 invoked by uid 500); 23 Jan 2006 15:17:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 88810 invoked by uid 500); 23 Jan 2006 15:17:55 -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 88799 invoked by uid 99); 23 Jan 2006 15:17:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 07:17:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.140.77.184] (HELO mail.schoenhaber.de) (217.140.77.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 07:17:54 -0800 Received: from localhost (unknown [127.0.0.1]) by mail.schoenhaber.de (Postfix) with ESMTP id F25777186843 for ; Mon, 23 Jan 2006 15:17:32 +0000 (UTC) Received: from mail.schoenhaber.de ([127.0.0.1]) by localhost (mail.schoenhaber.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12674-19 for ; Mon, 23 Jan 2006 16:17:32 +0100 (CET) Received: from Gimli.schoenhaber.de (Gimli [192.168.42.6]) by mail.schoenhaber.de (Postfix) with ESMTP id 597DA7186842 for ; Mon, 23 Jan 2006 16:17:32 +0100 (CET) From: Markus =?iso-8859-1?q?Sch=F6nhaber?= Reply-To: tomcat-user@jakarta.apache.org To: "Tomcat Users List" Subject: Re: writing files with a web application Date: Mon, 23 Jan 2006 16:17:31 +0100 User-Agent: KMail/1.9 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601231617.31404.mailing-tomcat-user@schoenhaber.de> X-Virus-Scanned: amavisd-new at schoenhaber.de X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Peter Crowther wrote: > > From: SOA Work [mailto:soawork@web.de] > > Check the Servlet Spec (version 2.4 is at > http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ > ) for questions of this kind. > > From memory in both cases (so treat with caution): > > 1.) am I allowed to call main methods or programms in my web > > applicatio? > > If you wish to be spec-compliant, no. However, it should work depending > on Tomcat's security settings. > > > 2.) am I allowed to write files on the disk from within an > > web application? If I am, something went wrong while trieing ;-) > > Can i write anywhere or have I to write to my application dir > > or to temp dir or something. > > If you wish to be spec-compliant, you can only write to a temporary > directory that you ask the context for. However, this may or may not be > enforced depending on Tomcat's security settings. I couldn't find any hint that either action would violate the spec. If I simply missed the relevant parts, could you please point me in the right direction? Regards mks --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org