Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FF881150B for ; Fri, 5 Sep 2014 07:11:28 +0000 (UTC) Received: (qmail 50210 invoked by uid 500); 5 Sep 2014 07:11:28 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 50176 invoked by uid 500); 5 Sep 2014 07:11:28 -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 50161 invoked by uid 99); 5 Sep 2014 07:11:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2014 07:11:28 +0000 Date: Fri, 5 Sep 2014 07:11:27 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4401) , if no selections made by user, the array gets injected with empty array instead of null and same is the case with List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14122535#comment-14122535 ] Lukasz Lenart commented on WW-4401: ----------------------------------- To read about changes in given version read Version Notes, eg. http://struts.apache.org/release/2.3.x/docs/version-notes-2316.html but when you migrate from very old version (2.1.x branch is old, I'd say very old) you must read each Version Notes, step by step. I'm not sure if WW-3603 was the change I thought of - it rather eliminates your issue. Anyway, basing on {{null}} isn't a good idea because you simple don't know if values wasn't sent (via request) or it was set to empty value ({{?myParam=}}). Even if user didn't select a value, web browser will post an empty value. And memory isn't an issue here at all - it's far better to create short-living objects then long-living one - garbage collector is your friend :-) And I'm wondering how it is possible to not select value when you use {code:xml} {code} in such case, the first element of the list will be selected by default. > , if no selections made by user, the array gets injected with empty array instead of null and same is the case with List > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: WW-4401 > URL: https://issues.apache.org/jira/browse/WW-4401 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Tags > Affects Versions: 2.3.16.3 > Environment: Mac, Tomcat 6/7 > Reporter: Sravanthi Bobba > Fix For: 2.5.x > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)