Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 13364 invoked from network); 24 Mar 2009 23:30:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2009 23:30:28 -0000 Received: (qmail 85986 invoked by uid 500); 24 Mar 2009 23:30:25 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 85918 invoked by uid 500); 24 Mar 2009 23:30:25 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 85908 invoked by uid 99); 24 Mar 2009 23:30:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2009 23:30:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.47] (HELO n67.bullet.mail.sp1.yahoo.com) (98.136.44.47) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Mar 2009 23:30:13 +0000 Received: from [69.147.84.144] by n67.bullet.mail.sp1.yahoo.com with NNFMP; 24 Mar 2009 23:29:52 -0000 Received: from [67.195.9.81] by t6.bullet.mail.sp1.yahoo.com with NNFMP; 24 Mar 2009 23:29:52 -0000 Received: from [67.195.9.104] by t1.bullet.mail.gq1.yahoo.com with NNFMP; 24 Mar 2009 23:29:52 -0000 Received: from [127.0.0.1] by omp108.mail.gq1.yahoo.com with NNFMP; 24 Mar 2009 23:28:59 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 873357.23948.bm@omp108.mail.gq1.yahoo.com Received: (qmail 85057 invoked by uid 60001); 24 Mar 2009 23:29:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1237937392; bh=c4aAkUifKBuEH4ZBt4wIQQe4wFZt0bjhNxC+ffm3bfE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=pCqp05li2iQ/lEKJICPno6fWZ3d37MBuU1nYJQDLUFMP3AJVcw1QYlz7f8cA/UFJ1YtgllecElPmzbAu9xkzYeSFthWD+aQe6trlBijo4Su5XMaK5vDTAprYnrDqtMf6wG927DGEpZWLQDQ5c2tz6i8hU+3T33dKnrkYpxp9iwA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=vF1uyZgDrFZA6KqbceXXGL1GIcWJBASucVIiRFXXUuDGYnrP87ePf/z3wOsMqgQyAKOpde8WEhhJ82SLKfsAj+BBHBwZlEmwSxZQtvYasM+XmPE01kqfUv+zXEnn+WY6dgexbsyoebYDKnhjBqYovJo1aE1Wb3M2LFZKnJxM9Rg=; Message-ID: <152245.84810.qm@web111111.mail.gq1.yahoo.com> X-YMail-OSG: _XKQc0cVM1kNFcAcEWRMnyf1_ap9pJy20yfuUM4aEgwUuV53dNq4ZQW65ly7iQJ2_tom00ANtqLunkXAJIY4eZmR1iwOIJvIWF3IYhkX4bdbxBLSW_Lc343qkHeHULIsWZNjyO7KG4cyKqzlzms2ViWMRVcI Received: from [171.64.207.93] by web111111.mail.gq1.yahoo.com via HTTP; Tue, 24 Mar 2009 16:29:52 PDT X-Mailer: YahooMailRC/1277.32 YahooMailWebService/0.7.289.1 Date: Tue, 24 Mar 2009 16:29:52 -0700 (PDT) From: Windy Hung Subject: getting value from struts.properties in action class To: Struts Users Mailing List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1906962314-1237937392=:84810" X-Virus-Checked: Checked by ClamAV on apache.org --0-1906962314-1237937392=:84810 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi=0A I set =0A"struts.multipart.saveDir=3Dc:\\test-tmp" in my struts.prope= rties. The setting is for file uploading.=0AAnd I would like to check if th= e directory exists during file loading in my action class.=0A=0AIs there an= y easy way to get value out from struts.properties instead of using getClas= s().getResourceAsStream("struts.properties");=0A=0AAnd when is the best tim= e to check if the directory exits? Do I do the checking in Interceptor inst= ead of execute() in action class?=0A=0AThanks=0A=0AWindy Hung=0A=0A=0A = --0-1906962314-1237937392=:84810--