From user-return-219322-archive-asf-public=cust-asf.ponee.io@struts.apache.org Tue Mar 19 07:54:12 2019 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 96523180626 for ; Tue, 19 Mar 2019 08:54:11 +0100 (CET) Received: (qmail 77590 invoked by uid 500); 19 Mar 2019 07:54:10 -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 77573 invoked by uid 99); 19 Mar 2019 07:54:09 -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; Tue, 19 Mar 2019 07:54:09 +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 D07B71809DD for ; Tue, 19 Mar 2019 07:54:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=live.com 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 TFmc8USEFN6j for ; Tue, 19 Mar 2019 07:54:06 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-oln040092066055.outbound.protection.outlook.com [40.92.66.55]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 589B1624A6 for ; Tue, 19 Mar 2019 07:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cmyBwEww8N2aDglvMYwprXzo9PHNrT15gbvGRTBwGdM=; b=OUH1+K61tdwvDe8G83s++TFQ23MiAV4lOlDY2FgjufQB5xn/NP3CXvCQOqWdiu7KWrcGcPXysg8/4jgbXrahN8FnUQtyLoe94KHJ3lpghsO2Fo5HmTRzszatCa0umo8m7STwdffRW/M+y68ykH50U5uTtNoZ0PCR6EE4hD9lagjsLdm9RlquazOHFm39LpmzJd3/V4Mab+UOdI8LuGKsggM07RxMrKeFSxW7JOu7IvC0N65RD7KNRxnTvB2X+5jc0/etGbigTnnTc44cEyO/uAfqvP0KcSvHNtBcef4Mg0sN3qGuDXGv6lZ8MTvfDTX/KgLEer6dudnnEMyphWKpQw== Received: from DB5EUR01FT047.eop-EUR01.prod.protection.outlook.com (10.152.4.59) by DB5EUR01HT193.eop-EUR01.prod.protection.outlook.com (10.152.5.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.9; Tue, 19 Mar 2019 07:28:54 +0000 Received: from AM6PR08MB4358.eurprd08.prod.outlook.com (10.152.4.54) by DB5EUR01FT047.mail.protection.outlook.com (10.152.5.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.9 via Frontend Transport; Tue, 19 Mar 2019 07:28:54 +0000 Received: from AM6PR08MB4358.eurprd08.prod.outlook.com ([fe80::84cb:5a84:8998:ca16]) by AM6PR08MB4358.eurprd08.prod.outlook.com ([fe80::84cb:5a84:8998:ca16%7]) with mapi id 15.20.1709.015; Tue, 19 Mar 2019 07:28:54 +0000 From: Yasser Zamani To: Struts Users Mailing List Subject: RE: Issue : Binding Integer Array upon form submission Thread-Topic: Issue : Binding Integer Array upon form submission Thread-Index: AQHU3YDG4UuHCzGgn0Cx2T5Urumk66YSjaFg Sender: Yasser Zamani Date: Tue, 19 Mar 2019 07:28:54 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2099F594918507D1A1ADD13560AE13ED454759A0D2E36165D6C14A26593700E2;UpperCasedChecksum:84B9D8A73C02EEA600D2E7274E0EF1700E4D327E079986B311CE011CE2FFC0DC;SizeAsReceived:6924;Count:45 x-ms-exchange-messagesentrepresentingtype: 2 x-tmn: [BAPeO4gJBzBOz6Oz0yHhGvZwAXhPWuhY] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031324274)(2017031323274)(1601125500)(1603101475)(1701031045);SRVR:DB5EUR01HT193; x-ms-traffictypediagnostic: DB5EUR01HT193: x-microsoft-antispam-message-info: P2dPaigbDNJTq8V8PMqrphR5zQO0DvxDqcAj2g6bHcR+gD6yVySh64DDVDhY57PH Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 755efb47-3604-4c2d-694b-08d6ac3c8ab4 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2019 07:28:54.3597 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT193 Hi Muhammad, I tested your sample exactly and works as expected here (setRfaAccessType(I= nteger[] rfaAccessType) called with ticked values). The first thing you can do is enabling devMode and log level to warn and lo= oking output for any relevant warnings. If not try debug level. Thanks for using Struts. Regards. >-----Original Message----- >From: Muhammad Salman Farooq1 >Sent: Monday, March 18, 2019 2:51 PM >To: user@struts.apache.org >Subject: Issue : Binding Integer Array upon form submission > > > >We have just migrated our application from 2.2.3 to struts 2.5.20. >In one of our use-cases, we have two checkboxes with same "name" attribute >and upon submission, they submit integer values that we bind with Integer = array >being defined in the action. >After migration, that thing stopped working. >Here is my code snippet in JSP: > > >id=3D"rfaacess_STORAGE"> > > >id=3D"rfaacess_SERVER"> > > > > > >Here is the integer array in Action class (Setters and getters also >defined) > > >private Integer[] rfaAccessType; > > > > > >I need your help to remediate this issue. If this way of submitting form a= nd >binding it to an array still supported in Struts? If not, what should I do= so that I >have minimum change in my code? > >Regards, >Muhammad Salman Farooq >Lead Developer - HWSW Server Program >OCAJP | OCPJP Java SE 7 >IBM Global Business Services >Islamabad, Pakistan > >Phone: 92-0345-5061795 | 92-0304-6664753 >E-mail: muhammad.salman.farooq1@pk.ibm.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org