Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E795DDBDA for ; Sat, 21 Jul 2012 08:15:47 +0000 (UTC) Received: (qmail 3540 invoked by uid 500); 21 Jul 2012 08:15:46 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 3186 invoked by uid 500); 21 Jul 2012 08:15:44 -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 3105 invoked by uid 99); 21 Jul 2012 08:15:41 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 08:15:41 +0000 Received: from localhost (HELO mail-ob0-f176.google.com) (127.0.0.1) (smtp-auth username lukaszlenart, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 08:15:40 +0000 Received: by obbtb18 with SMTP id tb18so7999624obb.35 for ; Sat, 21 Jul 2012 01:15:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.8.200 with SMTP id t8mr10931626oea.7.1342858539483; Sat, 21 Jul 2012 01:15:39 -0700 (PDT) Received: by 10.76.169.132 with HTTP; Sat, 21 Jul 2012 01:15:39 -0700 (PDT) In-Reply-To: <26A7FC1339D50348898F6DFFC9A96D9C0B623037@MX14A.corp.emc.com> References: <26A7FC1339D50348898F6DFFC9A96D9C0B623037@MX14A.corp.emc.com> Date: Sat, 21 Jul 2012 10:15:39 +0200 Message-ID: Subject: Re: convention plugin mapping question From: Lukasz Lenart To: Struts Users Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012/7/19 : > I'm experiencing some slightly unexpected behavior with respect to the pa= ckage of the actionless results in my convention plugin app. > > Consider the following action classes and templates: > > com/actions/Delta.class > > > And templates relative to WEB-INF/content/ > > alpha.ftl > delta.ftl > > > The following works as expected: > > localhost:8080/delta --> hits the delta action > localhost:8080/alpha --> hits the alpha template, an actionless result= ( I assume this is actually an empty action implementation ) > > And the following also works, since the delta action is in the "default" = package I assume > > localhost:8080/foo/delta --> hits the delta action even though there's t= he foo path element; this is because foo doesn't contain delta, but the fal= l back is to the default package > > But this doesn't work: > > localhost:8080/foo/alpha --> doesn't hit the alpha actionless result > > Shouldn't it work like the delta action? I'm not sure but it should fall back to default package and try to find the action there. Did you try to play with struts.convention.action.mapAllMatches =3D true/false ? Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org