struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-5025) Binding Integer Array upon form submission
Date Mon, 18 Mar 2019 10:10:00 GMT

     [ https://issues.apache.org/jira/browse/WW-5025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-5025:
------------------------------
    Fix Version/s: 2.6

> Binding Integer Array upon form submission
> ------------------------------------------
>
>                 Key: WW-5025
>                 URL: https://issues.apache.org/jira/browse/WW-5025
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.5.20
>            Reporter: Muhammad Salman
>            Priority: Trivial
>             Fix For: 2.6
>
>
> We have just migrated our application on 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:
> {color:#14892c}<input type="checkbox" name="rfaAccessType" value="1" id="rfaacess_STORAGE">{color}
> {color:#14892c}<input type="checkbox" name="rfaAccessType" value="2" id="rfaacess_SERVER">{color}
>  
> Here is the integer array in Action class (Setters and getters also defined)
> {color:#205081}private Integer[] rfaAccessType;{color}
>  
> I need your help to remediate this issue. If this way of submitting form and binding
it to an array still supported in Struts? If not, what should I do so that I have minimum
change in my code?
>  
>  
>  
>  



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

Mime
View raw message