Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 20418 invoked from network); 10 Sep 2006 15:12:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Sep 2006 15:12:49 -0000 Received: (qmail 68658 invoked by uid 500); 10 Sep 2006 15:12:40 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 68628 invoked by uid 500); 10 Sep 2006 15:12:40 -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 68617 invoked by uid 99); 10 Sep 2006 15:12:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 08:12:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [130.239.40.25] (HELO mail.cs.umu.se) (130.239.40.25) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 08:12:39 -0700 Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 6312F92 for ; Sun, 10 Sep 2006 17:12:18 +0200 (MEST) Received: from mail.cs.umu.se ([127.0.0.1]) by localhost (mimmi.cs.umu.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09503-01-11 for ; Sun, 10 Sep 2006 17:12:09 +0200 (MEST) Received: from [192.168.0.5] (73-230.powerdsl.t3.se [80.244.73.230]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.umu.se (Postfix) with ESMTP id BC0297F for ; Sun, 10 Sep 2006 17:12:09 +0200 (MEST) Message-ID: <45042B54.9010209@cs.umu.se> Date: Sun, 10 Sep 2006 17:12:20 +0200 From: David Grundberg User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: How do I get the original RequestURI? References: <20060910145447.78618.qmail@web52415.mail.yahoo.com> In-Reply-To: <20060910145447.78618.qmail@web52415.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at cs.umu.se X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N What? I'm sorry, but I'm not asking about how to assemble an URL. I want to retrieve the original URL sent by the browser in the request. The request.getRequestURL() is wrapped and modified with each forward, and I want the first, by the browser, requested URL. Since so many seem to misunderstand me: 1. User inputs "http://localhost/appname/input.do" in browser. (Mapped to InputAction) 2. InputAction's request.getRequestURL() is "http://localhost/appname/input.do" 3. InputAction forward to OtherAction. 4. The OtherAction's request.getRequestURL() is "http://localhost/appname/other.do". <-- THIS ISN'T WHAT I WANT. I want to retrieve the URL "http://localhost/appname/input.do" in the OtherAction WITHOUT modifying InputAction. How do I do this? Rimzim Sinha skrev: > Try > getContextPAth + gathRequestURL... > > Martin Gainty wrote: > http://www.docjar.com/docs/api/org/apache/struts/action/Action.html#execute(org.apache.struts.action.ActionMapping,%20org.apache.struts.action.ActionForm,%20javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse) > The second parameter of the Action execute method is 'ActionForm' > HTH, > Martin- > ********************************************************************* > This email message and any files transmitted with it contain confidential > information intended only for the person(s) to whom this email message is > addressed. If you have received this email message in error, please notify > the sender immediately by telephone or email and destroy the original > message without making a copy. Thank you. > > > > ----- Original Message ----- > From: "David Grundberg" > To: "Struts Users Mailing List" > Sent: Sunday, September 10, 2006 8:46 AM > Subject: How do I get the original RequestURI? > > > >> Hi, >> >> I want to do something like this: >> 1. User enters http://localhost/appname/welcome.do >> 2. PlaceAction forwards to list.do >> 3. In ListAction, I want to retrieve the URL the user entered >> "/appname/welcome.do". >> >> The problem: when I run getRequestURI in the ListAction, all I get is >> "/appname/list.do". I guess this is a sort of natural thing for it to >> do, but how do I get the original URI? (/appname/welcome.do) >> >> Any help appreciated! >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> >> > > > --------------------------------- > Why keep checking for Mail? The all-new Yahoo! Mail shows you when there are new messages. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org