Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 42947 invoked from network); 23 Apr 2008 20:11:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 20:11:32 -0000 Received: (qmail 55118 invoked by uid 500); 23 Apr 2008 20:11:23 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 55093 invoked by uid 500); 23 Apr 2008 20:11:23 -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 55082 invoked by uid 99); 23 Apr 2008 20:11:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 13:11:23 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.126.177] (HELO moutng.kundenserver.de) (212.227.126.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 20:10:31 +0000 Received: from [192.168.0.234] (host86-147-237-44.range86-147.btcentralplus.com [86.147.237.44]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1JolIq17l3-0003G6; Wed, 23 Apr 2008 22:10:52 +0200 Message-ID: <480F97CB.1090606@cyberspaceroad.com> Date: Wed, 23 Apr 2008 21:10:51 +0100 From: Adam Hardy User-Agent: Icedove 1.5.0.14pre (X11/20080305) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: [OT] Looking for a util to set parameters on an object References: <350622.12858.qm@web53607.mail.re2.yahoo.com> In-Reply-To: <350622.12858.qm@web53607.mail.re2.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19MsoDTtZFZMfD/F2uBzJ26OyEExKpNkVzeaxL 3gCpGE1GLHSEBviW0vE0a9ckI9cmKwzMM1pn8luq48wtfkMxMj EuTGy5YNiHvUTMGJzZRvE0zUoE9SZ7q X-Virus-Checked: Checked by ClamAV on apache.org Greg Lindholm on 23/04/08 20:36, wrote: > I have an object and a Map of parameter/values and I'm looking for a utility that will match up the parameters with the setters on the object, call the setters and handle conversions for primitive types. > > I know that OGNL is being used to do this on actions from the ParametersInterceptor. I tried tracing this down in the debugger and it seems to be way more complicated then I need (i.e. uses a value stack and a context and support full OGNL expressions etc.) > > Is this facility available in a (simple to use) standalone utility? > > I could write it but why re-invent the wheel since I'm sure it exists already. org.apache.commons-beanutils --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org