Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 35325 invoked from network); 12 May 2009 13:25:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 13:25:30 -0000 Received: (qmail 70222 invoked by uid 500); 12 May 2009 13:25:27 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 70183 invoked by uid 500); 12 May 2009 13:25:27 -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 70173 invoked by uid 99); 12 May 2009 13:25:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 13:25:27 +0000 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: domain of musachy@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 13:25:19 +0000 Received: by an-out-0708.google.com with SMTP id d14so1839639and.17 for ; Tue, 12 May 2009 06:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0FsYbCVEfuUHZFkhzZT2DpBtxjTk85w9F7S0P6ITY7g=; b=BVhjd6x8VqtUI7WiNtRiKVqW6nkNHckzHawq2f5IXU/8hI96KZy7YfY9hSihxXVbto 2O6mjAPN/aA0u9wT+hnL/xK+lgO9QJ9hCOqXCo3wHmVJIe0VGayl/nqVsC88zZr/RD4q wLpzUQf2Hnd43pmoM4eq10oSyhW484cgqoNgw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MQsKcATvipUAF7TED7eK8f9saai5qN7SKg+GaV5nVivb6NVwqD2I7PFg3Iz0RSpjXE 3G40V9UfBWaF5e6SH6oNrFXWLWmLKy+DC0Lr2qZc9cSN3Ikv6DIjajiIAOOg6kcnCHHc sAo+zbv56sW0dVYnldD/KapNoEBRGzIgMtygU= MIME-Version: 1.0 Received: by 10.231.38.133 with SMTP id b5mr2518069ibe.38.1242134698122; Tue, 12 May 2009 06:24:58 -0700 (PDT) In-Reply-To: <4A097287.3050206@yahoo.com> References: <61C2DEA055980B418D063F8646FCAEFC04769CF8@ACT001CL03EX03.agdaff.gov.au> <4A097287.3050206@yahoo.com> Date: Tue, 12 May 2009 09:24:58 -0400 Message-ID: Subject: Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED] From: Musachy Barroso To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Right now there is no way, we could add a flag that check if there are annotated methods, and prevents the mapping of "execute" musachy On Tue, May 12, 2009 at 8:58 AM, Dave Newton wrote: > Crombie, Joe - BRS wrote: >> >> Hi All, >> =A0I'm currently switching to 2.1.6 and the Convention plugin for >> configuration. =A0=A0I tend to use POJOs for my Action classes, and map >> actions to methods. >> My problem is that when I extend ActionSupport, Convention generates a >> default mapping to the execute method (which I generally don't provide). > > If you're extending ActionSupport there's an execute() method. (As well a= s > input.) > > I'd think the easiest, quickest, dirtiest solution would just be to provi= de > an execute() that either provides a "nocontents" result as you said or ma= p > it to something else in the action. Making it private might work, but I > haven't tried it. > > Off the top of my head I don't know an easy way to not have some methods > mapped. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --=20 "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org