Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 54432 invoked from network); 17 Sep 2004 12:17:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Sep 2004 12:17:19 -0000 Received: (qmail 68398 invoked by uid 500); 17 Sep 2004 12:16:34 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 68319 invoked by uid 500); 17 Sep 2004 12:16:33 -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 68306 invoked by uid 99); 17 Sep 2004 12:16:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [200.44.33.10] (HELO rs25s9.datacenter.cha.cantv.net) (200.44.33.10) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 17 Sep 2004 05:16:32 -0700 Received: from [192.168.0.198] (dC8542165.dslam-05-26-2-03-01-01.bol.dsl.cantv.net [200.84.33.101]) by rs25s9.datacenter.cha.cantv.net (8.13.0/8.13.0/3.0) with ESMTP id i8HCGSNF015667 for ; Fri, 17 Sep 2004 08:16:28 -0400 X-Matched-Lists: [] Message-ID: <414AD697.9050701@florhard.com> Date: Fri, 17 Sep 2004 08:20:39 -0400 From: John Villar Organization: Computadores Flor Hard Soft 2058 C.A. User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: es-es, es MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Traversing up a directory using RequestDispatcher References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------080107040903080301050500" X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on rs25s9 X-Virus-Status: Clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------080107040903080301050500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit if you're forwarding from the "ChargeCard" directory, you just have to include only the name of the page in the forward directive (e.g. "something.jsp" or "./something.jsp").... the trailing backslash is directly referring the root context of "this" host John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com Xeth Waxman escribi�: >I have a bizarre issue. Using Tomcat 5.0.12, I have an application in >the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard. >After loggin in, I am trying to forward a request to jsp page in that >directory. However, RequestDispatcher apparently uses the directory >C:\jakarta-tomcat-5.0.12\webapps\ROOT as the Document root, so I need >to go up a directory in my forward request (something like url = >"../ChargeCard/index.jsp";) However, RequestDispatcher requires a / >to start off the url, so I can't use the ../ start to go up a >directory. Does anyone have an idea how I would do this? I tried url >= "/../ChargeCard/index.jsp";, but that results in a >NullPointerException being thrown. All help is appreciated! > > --------------080107040903080301050500 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------080107040903080301050500--