Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 48682 invoked from network); 20 Feb 2002 00:19:38 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Feb 2002 00:19:38 -0000 Received: (qmail 1100 invoked by uid 97); 20 Feb 2002 00:19:20 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 1073 invoked by uid 97); 20 Feb 2002 00:19:19 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 1051 invoked from network); 20 Feb 2002 00:19:18 -0000 Message-ID: <3C72EBD0.3030006@mdh.se> Date: Wed, 20 Feb 2002 01:20:32 +0100 From: Fredrik Westermarck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: sv, en-us MIME-Version: 1.0 To: Tomcat Users List Subject: Re: reading content in WEB-INF References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Max Z. wrote: > I am storing a file in the WEB-INF directory and I need to access it with a > servlet, how would I get to it? > Use: InputStream is = getServletContext().getResourceAsStream("/WEB-INF/your.file"); -- To unsubscribe: For additional commands: Troubles with the list: