struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amol (JIRA)" <j...@apache.org>
Subject [jira] [Created] (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
Date Thu, 01 Feb 2018 06:27:00 GMT
amol created WW-4913:
------------------------

             Summary: 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
                 Key: WW-4913
                 URL: https://issues.apache.org/jira/browse/WW-4913
             Project: Struts 2
          Issue Type: Task
            Reporter: amol


1> action form MembersPersonalDetailsForm.java

public class MembersPersonalDetailsForm extends QAValidatorForm {
private ValueHolder[] forename = new ValueHolder[17];

}

2> ValueHolder.java

public class ValueHolder implements Serializable {

private static final long serialVersionUID = 7813961312803493438L;

private Object value = ""; //$NON-NLS-1$

public ValueHolder() {
 super();
 }
 
 public ValueHolder(Object val) {
 this();
 this.value = val;
 }

public Object getValue() {
 return value;
 }
 
 public void setValue(Object value) {
 this.value = value;
 }

}

 

 

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message