Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 82935 invoked from network); 20 Jan 2011 03:34:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 03:34:12 -0000 Received: (qmail 91616 invoked by uid 500); 20 Jan 2011 03:34:10 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 91129 invoked by uid 500); 20 Jan 2011 03:34:06 -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 91105 invoked by uid 99); 20 Jan 2011 03:34:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 03:34:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harsh.grover@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 03:33:58 +0000 Received: by qwh6 with SMTP id 6so114797qwh.35 for ; Wed, 19 Jan 2011 19:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=+bTbqIvBlgLTLfZa69ER1jJbyxvrgsnTaTVX4zeoxs4=; b=htcmLEXtS1W1pdV4/9MLzQh7nOEPkARJoF9viEb15/Sx6XTvckOMI6B19A+MdHq5uk j5x+nbTS/rygx753mW4jKfW8/V8kz7JTvXkGLQtuiCbinev4EbVzFpNXkgT1YXegQ5u5 +MOAd8vaQ3Zd6x7gV9PFN590VzFYd2k4m3mVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tq4Qbz2PfBML9PF5GHIK/HUugj9nMdzm51Hl9OZeD8HO+x+FtOlTa3JLfKhhFNEIfa w3X5ZkJomZlxAt4jU1EI0Xe9+I4a8QNRRHhUIGZiHEwKc/p1jw8ZgxiMmvm8IzK4cP2V j16+Ccs7DBjmNzVFyTel863FvdN/qyVfFJVJg= MIME-Version: 1.0 Received: by 10.229.224.201 with SMTP id ip9mr1288378qcb.202.1295494416866; Wed, 19 Jan 2011 19:33:36 -0800 (PST) Received: by 10.229.187.70 with HTTP; Wed, 19 Jan 2011 19:33:36 -0800 (PST) In-Reply-To: References: Date: Wed, 19 Jan 2011 19:33:36 -0800 Message-ID: Subject: Re: Redirect & RedirectAction forwarding to localhost:8080 if no protocol mentioned in namespace From: Harsh Grover To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=0016363b85c4869f67049a3ecc14 X-Virus-Checked: Checked by ClamAV on apache.org --0016363b85c4869f67049a3ecc14 Content-Type: text/plain; charset=ISO-8859-1 here it is. home.jsp loadLogin true true login.jsp if login succeeds, i'm taking the user to the home page. However, if login fails, I'm redirecting the user back to the login page with a query param: loginFailed=true. However, it is forwarding to http://localhost:8080/test/actions/loadLogin.jsp, and bypassing the apache instance in front of it completely, even if the request comes from http://abc.com/test/actions/userLogin.action. Thanks On Wed, Jan 19, 2011 at 1:49 AM, Mohamed SIDI wrote: > can you put out your configuration in struts.xml? > > > > 2011/1/18 Harsh Grover > > > I'm using redirectAction to send the user to another action using > > redirectAction. However, if the namespace is not provided, the request is > > getting forwarded to localhost:8080 (my server instance). I'm using > apache > > in front of my app server, and this is breaking my flow. Is there any > > configuration I need to change? I cant put the complete url in my > namespace > > since I have multiple environments. > > > > Any help on this is highly appreciated. > > > > Thanks. > > > > > > -- > > > Cordialement > > Mohamed > --0016363b85c4869f67049a3ecc14--