Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 50017 invoked from network); 24 Sep 2007 13:26:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2007 13:26:51 -0000 Received: (qmail 44325 invoked by uid 500); 24 Sep 2007 13:26:24 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 44301 invoked by uid 500); 24 Sep 2007 13:26:24 -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 44284 invoked by uid 99); 24 Sep 2007 13:26:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 06:26:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.196.97.61] (HELO web56702.mail.re3.yahoo.com) (66.196.97.61) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Sep 2007 13:26:24 +0000 Received: (qmail 82490 invoked by uid 60001); 24 Sep 2007 13:26:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=MxUpjINGEDy+o85UJMPU38XygR7A40lKoYOG/tzVamb+0ms1UWOW63QMkWO9GD8Ra6kZWDkwDi04iFNdLkZKpzBrm5Yfd9fwSntt7O1Y0iOZsv3aOgaXJ1c6JVVmEFMk7P5YTz/TmZFXEdD7+kXEgv1E3ryhwXSgWRGTB1V1aP0=; X-YMail-OSG: gQHlOOwVM1mvTpHt1ApjfIIw.7Zd8wkoUvrWcRPN0VLfaQv0_MhRHz_3AYtWT3DGDASluFtIGvfcGXgu4dGwj4MjKRLOdPnu.ouFcAOSFebYeDM0wmw- Received: from [63.166.14.2] by web56702.mail.re3.yahoo.com via HTTP; Mon, 24 Sep 2007 06:26:03 PDT Date: Mon, 24 Sep 2007 06:26:03 -0700 (PDT) From: Dave Newton Subject: Re: Mapping multiple enums to a nested object To: Struts Users Mailing List In-Reply-To: <12859800.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <224912.78346.qm@web56702.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- Guillaume Bilodeau wrote: > Yes it was deliberate. I'm not sure I see the > advantages of flattening my action *and* my request > object, for now I'd rather keep this nested as it > currently is. Of course I'll change my mind if > given the right counter-arguments :) The most compelling counter-argument is that getModel() doesn't expose anything to the JSP unless you implement ModelDriven. You reference "food.name" etc. on your form but don't expose anything named "food", which is what Adam was referring to. Even if you *did* implement ModelDriven you would still not be exposing anything named "food" to the JSP: the result of the getModel() call is pushed on to the stack, properties are accessed by name (without the bean name), like . d. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org