Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 90F59200C43 for ; Sun, 26 Mar 2017 19:37:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F9FB160B87; Sun, 26 Mar 2017 17:37:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D3504160B82 for ; Sun, 26 Mar 2017 19:37:24 +0200 (CEST) Received: (qmail 80749 invoked by uid 500); 26 Mar 2017 17:37:18 -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 80738 invoked by uid 99); 26 Mar 2017 17:37:18 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Mar 2017 17:37:18 +0000 Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 57CA21A0185 for ; Sun, 26 Mar 2017 17:37:18 +0000 (UTC) Received: by mail-vk0-f47.google.com with SMTP id s68so30627433vke.3 for ; Sun, 26 Mar 2017 10:37:18 -0700 (PDT) X-Gm-Message-State: AFeK/H0ElL2CF7Du61Wku5j/p2HLYvdjYsuinUt3xUYL95Oqwj7HE9hRn2+5pBs64NwqivgIoFCFFqwAAUZhtA== X-Received: by 10.159.41.195 with SMTP id s61mr9042473uas.160.1490549837447; Sun, 26 Mar 2017 10:37:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.107.193 with HTTP; Sun, 26 Mar 2017 10:36:57 -0700 (PDT) In-Reply-To: <78a00c61-8f7b-e116-6b99-f18b31d41e3d@uta.fi> References: <78a00c61-8f7b-e116-6b99-f18b31d41e3d@uta.fi> From: Lukasz Lenart Date: Sun, 26 Mar 2017 19:36:57 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Passing a parameter from an interceptor to an action To: Struts Users Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Sun, 26 Mar 2017 17:37:25 -0000 2017-03-26 18:23 GMT+02:00 Heikki Hyyr=C3=B6 : > Hi, > > I would like to pass a parameter from an interceptor to an action, but am > not sure what is a proper way to do it if I also want to ensure that a > parameter with the same name cannot be injected into the action as a requ= est > parameter. > > I have set the interceptor to add the parameter into the valuestack, but > this approach does not seem to work if the parameter name is included eit= her > in the excludeParams-parameter of the params interceptor or as a blocked > parameter of the parameter filter. Either of these last two seems to prev= ent > the parameter from being accessible by the action. If the params intercep= tor > and parameter filter apply to _all_ values in the value stack, and not on= ly > request parameters, then is there some other route that allows to pass a > "private" parameter from an interceptor to an action? I would use a marking aware interface, the same as is done in Struts https://struts.apache.org/maven/struts2-core/apidocs/org/apache/struts2/int= erceptor/package-summary.html Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org