From issues-return-31948-archive-asf-public=cust-asf.ponee.io@struts.apache.org Fri Mar 16 07:38:06 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 9E33D180608 for ; Fri, 16 Mar 2018 07:38:05 +0100 (CET) Received: (qmail 66232 invoked by uid 500); 16 Mar 2018 06:38:04 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 66222 invoked by uid 99); 16 Mar 2018 06:38:03 -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; Fri, 16 Mar 2018 06:38:03 +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 9244218038B for ; Fri, 16 Mar 2018 06:38:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled 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 NEccfLgPrGNK for ; Fri, 16 Mar 2018 06:38:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3EA785F47B for ; Fri, 16 Mar 2018 06:38:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 68090E012D for ; Fri, 16 Mar 2018 06:38:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 297F021277 for ; Fri, 16 Mar 2018 06:38:00 +0000 (UTC) Date: Fri, 16 Mar 2018 06:38:00 +0000 (UTC) From: "amol (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WW-4913) when using an custom array as a filed in struts 2 action form textfiled data from jsp page in not populating into custom array but populating in String array or array list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4913?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1640150= 1#comment-16401501 ]=20 amol edited comment on WW-4913 at 3/16/18 6:37 AM: --------------------------------------------------- Hi [~yasser.zamani], I need an help.=20 My form field is private Map optionSelections; and in jsp when I am submit the form Data is not coming in to my form. Can you please = suggest, what is the right syntax I need to use or share a link to follow. was (Author: amolbd): Hi [~yasser.zamani], I need an help.=20 My form field is=20 > when using an custom array as a filed in struts 2 action form textfiled d= ata from jsp page in not populating into custom array but populating in Str= ing array or array list > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ----------------------- > > Key: WW-4913 > URL: https://issues.apache.org/jira/browse/WW-4913 > Project: Struts 2 > Issue Type: Task > Reporter: amol > Priority: Major > Fix For: 2.5.16 > > Attachments: Source.txt > > > 1> SampleAction.java > {code:java} > public class SampleAction{ > private ValueHolderExt[] name =3D new ValueHolderExt[17]; > private String[] age =3D new String[17];=20 > public ValueHolderExt[] getName() { > =09=09return name; > =09} > =09public void setName(ValueHolderExt[] name) { > =09=09this.name =3D name; > =09} > =09public String[] getAge() { > =09=09return age; > =09} > =09public void setAge(String[] age) { > =09=09this.age =3D age; > =09}=20 > public String execute() throws Exception {=20 > return "success"; > } > } > {code} > 2>=C2=A0ValueHolderExt.java > {code:java} > import java.io.Serializable; > public class ValueHolderExt implements Serializable { > private static final long serialVersionUID =3D 7813961312803493438L; > private String data =3D ""; > public String getData() { > return data; > } > public void setData(String data) { > this.data =3D data; > } =20 > } > {code} > 3> sample.jsp > {code:xml} > <%@ include file=3D"/WEB-INF/jsp/includes/include.jsp"%> > action=3D"/membersPersonalDetailsSubmit"> >
> > > > > > > > > > > > > > > > > '> > > > > >
> > >
name=3D"name[%{#idx}].data" id=3D"name[%{#idx}].data" size=3D"15" /> size=3D"15" />
>
>
>
>
> key=3D"membersPersonalDetails.button.continue.tooltip" value=3D"continue"= /> >
> >
> {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)