Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FD87D893 for ; Thu, 27 Sep 2012 02:03:27 +0000 (UTC) Received: (qmail 31098 invoked by uid 500); 27 Sep 2012 02:03:27 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 31058 invoked by uid 500); 27 Sep 2012 02:03:26 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 31045 invoked by uid 99); 27 Sep 2012 02:03:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 02:03:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of belingueres@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vb0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 02:03:20 +0000 Received: by vbme21 with SMTP id e21so1775415vbm.35 for ; Wed, 26 Sep 2012 19:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JYKY3o9Fe2c1d6ukkXUyz93njYb4x8t7wJmUPPu/yB4=; b=bd7WofsxEJHjlnevjwCKhBH59J0UUr/GMOn+Hydpk0Sa5N/K+KoyJ5yuozdOt/UHTs WDUq2cT+chJcpkKrblFdegNPgmIMxjUp7LpRSFfmSWxlPiqVx+UkaBLJkBKkSTxtJo40 Fj8zB/x4dm2IJ1hvZsFvxvQOgUJU6kG84qPjDmyjzf85PsatvXl/wstKNEKaio20UFRB YYuRJgeNwZSYb37/6VWnkIt6qQ5uHkPp39YAB+zMrSo9lGW2qWzgRdX6NBN0YtAta73t 88baD9D2qprDAeheF3fnJrygE76zI1JmB1px/PEmszXbrtZyMcWidvv+0r3vKsJNH2u5 5+qg== MIME-Version: 1.0 Received: by 10.58.12.7 with SMTP id u7mr1448850veb.8.1348711379419; Wed, 26 Sep 2012 19:02:59 -0700 (PDT) Received: by 10.58.161.106 with HTTP; Wed, 26 Sep 2012 19:02:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 26 Sep 2012 23:02:59 -0300 Message-ID: Subject: Re: Redirect-action alternative in Struts2 without browser redirect From: Gabriel Belingueres To: Struts Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi! I think the mistake here is to think in terms of a new "result type" instead of thinking how bad a design it is. That is, you want to execute functionality from 2 actions in 1 request, and I guess that you have the functionality scattered on two *different* Action classes. I would try to refactor the functionality in one Action class (or an Action superclass and one subclass) in such a way that the first execute() method call the second directly without forcing the framework to "chain" those two actions (which is a bad idea IMHO). Regards, Gabriel 2012/9/26 Fredrik Lindberg : > Hi! > > I am looking for if there is any alternative to the redirect-action > result type where it does not generate a browser redirect? The issue > with the browser redirect is that it results in a longer response > times for the users and also means the server is put under higher load > when it has to handle two requests in rapid succession (noticeable > under high load). Also why not send what the client wants right away? > > I have read about request chaining and using the ChainingInterceptor, > but this is fundamentally wrong in the sense that all request > parameters that the first action was fed also are passed on to the > next action. What I want is having control over what properties are > passed on to the next action in the same way as for the redirects, but > without the overhead. Can anyone help? =) > > / Fredrik Lindberg (2012-09-26). > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org