Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 36071 invoked from network); 2 Dec 2005 13:04:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Dec 2005 13:04:21 -0000 Received: (qmail 69617 invoked by uid 500); 2 Dec 2005 13:04:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 69302 invoked by uid 500); 2 Dec 2005 13:04:04 -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 69291 invoked by uid 99); 2 Dec 2005 13:04:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 05:04:04 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mgainty@hotmail.com designates 65.54.174.83 as permitted sender) Received: from [65.54.174.83] (HELO hotmail.com) (65.54.174.83) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 05:05:33 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Dec 2005 05:03:43 -0800 Message-ID: Received: from 65.96.185.18 by BAY103-DAV11.phx.gbl with DAV; Fri, 02 Dec 2005 13:03:43 +0000 X-Originating-IP: [65.96.185.18] X-Originating-Email: [mgainty@hotmail.com] X-Sender: mgainty@hotmail.com Reply-To: "Martin Gainty" From: "Martin Gainty" To: "Tomcat Users List" References: Subject: Re: Server Side file access Date: Fri, 2 Dec 2005 08:03:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 02 Dec 2005 13:03:43.0660 (UTC) FILETIME=[D2CDD6C0:01C5F740] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Glad to hear it Stay in touch, Martin "Good Manners dont cost nothing" - Pink Floyd ----- Original Message ----- From: "Phillip Mangwiro" To: "Tomcat Users List" ; "Martin Gainty" Sent: Friday, December 02, 2005 2:19 AM Subject: Re: Server Side file access > Thanks. > It worked. > > On 12/1/05, Martin Gainty wrote: >> Good Afternoon Philip- >> >> only if you have assigned the proper FilePermission in >> $CATALINA_HOME/conf/catalina.policy >> >> grant { >> permission java.io.FilePermission "${/}*", "read, write"; >> }; >> >> HTH, >> Martin- >> ----- Original Message ----- >> From: "Phillip Mangwiro" >> To: >> Sent: Thursday, December 01, 2005 12:55 PM >> Subject: Server Side file access >> >> >> > Can I read & write to File on the server while in a JSP page? I keep >> > getting >> > errors on the line to create the File: >> > File f = new File("myinfo.txt"); >> > >> > The error is reported to be because Tomcat expects an array or an >> > Object. >> > >> > >> > I'm using Tomcat 5.5 & jre 1.5. >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org