Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 6269 invoked from network); 30 Jul 2008 05:38:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2008 05:38:58 -0000 Received: (qmail 9377 invoked by uid 500); 30 Jul 2008 05:38:48 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 9365 invoked by uid 500); 30 Jul 2008 05:38:48 -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 9354 invoked by uid 99); 30 Jul 2008 05:38:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2008 22:38:48 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-struts-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 05:37:53 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KO4L1-0003F0-3u for user@struts.apache.org; Wed, 30 Jul 2008 05:35:03 +0000 Received: from cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com ([99.233.20.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jul 2008 05:35:03 +0000 Received: from laurie by cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jul 2008 05:35:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@struts.apache.org From: Laurie Harper Subject: Re: Implementing ParameterAware but still getting Unexpected Exception caught setting 'name' on 'class.... Date: Wed, 30 Jul 2008 01:33:30 -0400 Lines: 31 Message-ID: References: <302C50230E32AF488BFAFA755ECDAB8E5F6334@srv-im-01.intern.infomotion.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe0016b5ef7ea1-cm0014e88ef4b4.cpe.net.cable.rogers.com User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) In-Reply-To: <302C50230E32AF488BFAFA755ECDAB8E5F6334@srv-im-01.intern.infomotion.de> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Jan Froehlich wrote: > Hi there... > > I have a page with a dynamic number of input fields that is submited to > an action that implements ParameterAware. > Cause the names of the parameters passed to that action change every now > and then I can't write getters and setters for them. > Thats what I thought ParameterAware is made for. ParameterAware is just a low-level mechanism for getting access to the raw request parameters. If you want to apply conversion or validation to your request data, or have it injected into your actions or model objects, it's probably not what you need. What do you mean that the parameters passed to the action 'change every now and then'? At random?!? If you just mean that there are a variable number of them, no problem; that's what List- and array-backed properties are for. > But even then I get those "Unexpected Exception caught setting.....". > > Is there a way to tell s2 that it should stop doing it? > > Well, ok - not the most clever question, but I just want to get rid of > those Exceptions! Not sure I understand what you want. Do you just want to suppress the exception report in the logs, or does the exception represent an actual problem you need to fix? If the latter, you'll need to provide more details. L. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org