Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 67949 invoked from network); 13 Oct 2006 18:08:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 18:08:31 -0000 Received: (qmail 61614 invoked by uid 500); 13 Oct 2006 18:08:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 61376 invoked by uid 500); 13 Oct 2006 18:08:17 -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 61364 invoked by uid 99); 13 Oct 2006 18:08:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 11:08:17 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2006 11:08:16 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GYRRr-0006qe-CW for users@tomcat.apache.org; Fri, 13 Oct 2006 11:07:55 -0700 Message-ID: <6800963.post@talk.nabble.com> Date: Fri, 13 Oct 2006 11:07:55 -0700 (PDT) From: harl3kin To: users@tomcat.apache.org Subject: load files on tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: funksoulbrother00@gmx.de X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hello alltogether, i have a problem with accessing files deployed on tomcat. I want to access an image which is stored in a "graphics" folder right below the "WEB-INF" folder. I read that the tomcat-context has its start path on the "classes" folder. So what i did to retrieve the image was: Image image = Toolkit.getDefaultToolkit().getImage("/../graphics/toon.gif"); When I debugged I recongnized that the image width and height is -1, so i figure I didn't load the image correctly. Do you have any suggestions what I can do to make this work? I appreciate your time, Thorsten -- View this message in context: http://www.nabble.com/load-files-on-tomcat-tf2438873.html#a6800963 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- 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