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 6CB1C200C43 for ; Sun, 26 Mar 2017 18:23:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B647160B87; Sun, 26 Mar 2017 16:23:26 +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 B1B37160B6B for ; Sun, 26 Mar 2017 18:23:25 +0200 (CEST) Received: (qmail 18099 invoked by uid 500); 26 Mar 2017 16:23:23 -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 18087 invoked by uid 99); 26 Mar 2017 16:23:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Mar 2017 16:23:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 653B2185CAB for ; Sun, 26 Mar 2017 16:23:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.402 X-Spam-Level: X-Spam-Status: No, score=-2.402 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=uta.fi Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id aaLEZaFyy3LZ for ; Sun, 26 Mar 2017 16:23:18 +0000 (UTC) Received: from mxout1.uta.fi (mxout1.uta.fi [153.1.7.4]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6B4F25F610 for ; Sun, 26 Mar 2017 16:23:18 +0000 (UTC) Received: from mailscan1.uta.fi (mailscan1.uta.fi [153.1.7.3]) by mxout1.uta.fi (8.14.7/8.14.7) with ESMTP id v2QGNCmE000556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 26 Mar 2017 19:23:12 +0300 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=uta.fi; s=mail; t=1490545392; bh=3YIRj8OYykXLG+qTRcARgjQjq5Y=; l=846; h=To:From:Subject:Date; b=cXCWJVmSauz8erkZeEIl4ppXl3rgPrexHQFCQdHwO0a2/T8+SJb3X8056FMDHtyn1 8wp+b/5NXiLnZRyhQgkcw+6bFTDIZ4t31A6NVZ0TIMUSW54ntJHeOnGuxkGMbpvsu1 oKKKIU/0rtL7tn71+E+KorpHCU9aq3aN0d7c2Dj4= Received: from mailscan1.uta.fi (localhost [127.0.0.1]) by mailscan1.uta.fi (8.14.7/8.14.7) with ESMTP id v2QGNCVX013056 for ; Sun, 26 Mar 2017 19:23:12 +0300 Received: from smtp2.uta.fi (153.1.7.18) by mailscan1.uta.fi (F-Secure/fsigk_smtp/540/mailscan1.uta.fi); Sun, 26 Mar 2017 19:23:12 +0300 (EEST) X-Virus-Status: clean(F-Secure/fsigk_smtp/540/mailscan1.uta.fi) Received: from [192.168.10.5] (host-109-204-128-77.tp-fne.tampereenpuhelin.net [109.204.128.77]) (authenticated bits=0) by smtp2.uta.fi (8.14.7/8.14.7) with ESMTP id v2QGNBKQ005647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 26 Mar 2017 19:23:12 +0300 To: Struts Users Mailing List From: =?UTF-8?Q?Heikki_Hyyr=c3=b6?= Subject: Passing a parameter from an interceptor to an action Message-ID: <78a00c61-8f7b-e116-6b99-f18b31d41e3d@uta.fi> Date: Sun, 26 Mar 2017 19:23:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.16 (smtp2.uta.fi [153.1.7.18]); Sun, 26 Mar 2017 19:23:12 +0300 (EEST) X-Scanned-By: MIMEDefang 2.79 on 153.1.7.3 archived-at: Sun, 26 Mar 2017 16:23:26 -0000 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 request 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 either in the excludeParams-parameter of the params interceptor or as a blocked parameter of the parameter filter. Either of these last two seems to prevent the parameter from being accessible by the action. If the params interceptor and parameter filter apply to _all_ values in the value stack, and not only request parameters, then is there some other route that allows to pass a "private" parameter from an interceptor to an action? -Heikki --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org