Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 76544 invoked from network); 1 Jun 2008 19:17:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2008 19:17:33 -0000 Received: (qmail 21234 invoked by uid 500); 1 Jun 2008 19:17:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 20705 invoked by uid 500); 1 Jun 2008 19:17:26 -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 20694 invoked by uid 99); 1 Jun 2008 19:17:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2008 12:17:26 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jacky.shih@gmail.com designates 209.85.132.246 as permitted sender) Received: from [209.85.132.246] (HELO an-out-0708.google.com) (209.85.132.246) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2008 19:16:38 +0000 Received: by an-out-0708.google.com with SMTP id b8so268136ana.91 for ; Sun, 01 Jun 2008 12:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=8iOdYElZPsRQWyF50p+oyss+MGTHaLwhIr6BOUW2fKk=; b=Gk6lcixIPE8qKtuag7c2DxRNRw0I4wp4y8OMeZLL1pRwjvfiS+Wl0SG2kFYS2Zi8ya+7uvs9Tqyv8mxH/xSItvtZtKz0P6BkIK1jhUQ58CKCICtSDhl2sfEcxgK59B/hVfp8Mm3ksOxd7B/BzjEZSFZyrFle2JS8EK9plFi+W9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=vJP4gm1XoVRQmDLslKxmu+NiWbOWKRCSG5d3KYtcCi3ZK5Jq7/pghP/s+YzjOXH6BQdpjTMFNosEaRwaK+o9UN0i0wWe6TfN1TeGFnpX6fCNAugTOFADuOmaYg/AVB3altlcTv5+n0teQmXiqB11FGftf/aHK53f49eG124hQkQ= Received: by 10.100.33.4 with SMTP id g4mr13409007ang.111.1212347813987; Sun, 01 Jun 2008 12:16:53 -0700 (PDT) Received: by 10.100.201.10 with HTTP; Sun, 1 Jun 2008 12:16:53 -0700 (PDT) Message-ID: Date: Mon, 2 Jun 2008 03:16:53 +0800 From: "Jacky Shih" To: user@struts.apache.org Subject: Struts2 can't populate array property to form beans MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5254_19342906.1212347813966" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5254_19342906.1212347813966 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I meet a problem on populating array properties... here is the detail description: public class User { String [] phone; public String[] getPhone(){ return phone; } public void setPhone(String[] phone) { this.phone=phone; } } public class UserAction { private User user=new User(); public User getUser(){ return user;} public void setUser(User user) { this.user=user;} public String execute() { // user.getPhone() always return null... } } And i have a jsp which will submit a list of phone to the action class
after the form is submitted... the action class is called, however the list of phone can't be populated to the user object in the UserAction class... i have tried if the phone is not a array type.. the property is populated to the user object ... any suggestion for the issue? thx alot! ------=_Part_5254_19342906.1212347813966--