Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 89986 invoked by uid 500); 16 Jul 2001 15:24:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 89977 invoked from network); 16 Jul 2001 15:24:29 -0000 Received: from web4704.mail.yahoo.com (216.115.105.204) by h31.sny.collab.net with SMTP; 16 Jul 2001 15:24:29 -0000 Message-ID: <20010716152430.17724.qmail@web4704.mail.yahoo.com> Received: from [199.97.64.16] by web4704.mail.yahoo.com via HTTP; Mon, 16 Jul 2001 08:24:30 PDT Date: Mon, 16 Jul 2001 08:24:30 -0700 (PDT) From: Aditya Anand Subject: Re: relative path to real one To: tomcat-user@jakarta.apache.org In-Reply-To: <12620962.995296679462.JavaMail.imail@puffer> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Use ServletContext.getRealPath("xyz"); to do this. This assumes that xyz is a resource in your context root --- Jaume Pausas wrote: > Hi! > > Is it possible to translate a relative path to its > absolute one in the web > pages under Tomcat 4.0b5? > > So if I have a context named "mycontext" and some > day I decided to change > its name to "myothercontext" how can I manage to > perform any changes? > > Thanks, > JPausas > > > > > > _______________________________________________________ > �Tienes cuentas de e-mail GRATIS en Excite Espa�a! > A tu disposici�n en http://correo.excite.es > __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/