Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 17740 invoked from network); 29 Aug 2007 11:18:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 11:18:04 -0000 Received: (qmail 23211 invoked by uid 500); 29 Aug 2007 11:17:50 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23181 invoked by uid 500); 29 Aug 2007 11:17:50 -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 23167 invoked by uid 99); 29 Aug 2007 11:17:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 04:17:50 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 11:18:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IQLY3-00067y-LE for user@struts.apache.org; Wed, 29 Aug 2007 04:17:23 -0700 Message-ID: <12385079.post@talk.nabble.com> Date: Wed, 29 Aug 2007 04:17:23 -0700 (PDT) From: Boon Leng To: user@struts.apache.org Subject: [S2] Type Coversion in nested bean. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kbl64@hotmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm able to use type conversion to populate bean into List in the Action. But when I tried to populate bean into a List nested inside another bean, is not working and there's no error printed. May I know how can I implement type conversion for nested bean? Any help would be appreciated. Thanks. The following is my code. Action ------------------- public class UserAction extends ActionSupport { private User user; ... } Bean ------------------- public class User { private Set roles = new HashSet(); public Set getRoles() { return roles; } public void setRoles(Set value) { this.roles = value; } ... } JSP ------------------- SampleAction-coversion.properties ------------------- Element_user.roles=sample.model.Role KeyProperty_user.roles=id CreateIfNull_user.roles=true Regards, Boon Leng -- View this message in context: http://www.nabble.com/-S2--Type-Coversion-in-nested-bean.-tf4347142.html#a12385079 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org