From user-return-219178-archive-asf-public=cust-asf.ponee.io@struts.apache.org Thu Dec 20 20:34:17 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AB6C5180675 for ; Thu, 20 Dec 2018 20:34:16 +0100 (CET) Received: (qmail 39426 invoked by uid 500); 20 Dec 2018 19:34:15 -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 38598 invoked by uid 99); 20 Dec 2018 19:34:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2018 19:34:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 44A36C11F5 for ; Thu, 20 Dec 2018 19:34:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id YGW5-OrJWjHi for ; Thu, 20 Dec 2018 19:34:13 +0000 (UTC) Received: from webservices.itclinical.com (webservices.itclinical.com [195.23.251.147]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B4AB55F530 for ; Thu, 20 Dec 2018 19:24:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by webservices.itclinical.com (Postfix) with ESMTP id EAA28507D5B for ; Thu, 20 Dec 2018 19:24:52 +0000 (WET) X-Virus-Scanned: Debian amavisd-new at itclinical.com Received: from webservices.itclinical.com ([127.0.0.1]) by localhost (mail.itclinical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1PYfB9H2gC5f for ; Thu, 20 Dec 2018 19:24:50 +0000 (WET) Received: from itcd005.itclinical.com (unknown [192.168.10.1]) by webservices.itclinical.com (Postfix) with ESMTPSA id 9D29D507CE8 for ; Thu, 20 Dec 2018 19:24:50 +0000 (WET) To: user@struts.apache.org From: Micael Carreira Subject: Context parameters not being ignored? Message-ID: <19df7844-e601-5b07-8b34-104247b2e60f@itclinical.com> Date: Thu, 20 Dec 2018 19:24:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Hello, I'm using Struts2 with Spring. I have the following action:     SomeAction       |- FooService But in my bean definition I don't have the FooService dependency because SomeAction doesn't use it:     (Putting it this way doesn't make much sense, the real configuration is more complex than this, but this is the simplest example on how the problem can be reproduced) Then my struts.xml redirects to a jsp result:             /jsp/some.jsp     And some.jsp calls other action:     But OtherAction actually needs FooService as a dependency, and its bean definition reflects that:                 I noticed that when OtherAction gets instantiated through jsp parsing, it first gets set with the correct fooService dependency. However, after that, fooService then gets set with null. So OtherAction won't be able to correctly run. I already assessed that the second injection is the value that is present in SomeAction. But I don't want this value injected. It shouldn't be injected if I'm running OtherAction with ignoreContextParams="true", right? I have been all day around this problem, so any help would be much appreciated. Cheers, Micael --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org