Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 63318 invoked from network); 8 Sep 2007 07:32:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2007 07:32:33 -0000 Received: (qmail 92445 invoked by uid 500); 8 Sep 2007 07:32:26 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 92401 invoked by uid 500); 8 Sep 2007 07:32:25 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 92390 invoked by uid 99); 8 Sep 2007 07:32:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2007 00:32:25 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.198.186] (HELO rv-out-0910.google.com) (209.85.198.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2007 07:32:23 +0000 Received: by rv-out-0910.google.com with SMTP id c24so535379rvf for ; Sat, 08 Sep 2007 00:32:02 -0700 (PDT) Received: by 10.142.231.7 with SMTP id d7mr130646wfh.1189236721935; Sat, 08 Sep 2007 00:32:01 -0700 (PDT) Received: by 10.143.41.10 with HTTP; Sat, 8 Sep 2007 00:32:01 -0700 (PDT) Message-ID: <436d9a250709080032v4bd74f61vb4eb18c9b0231530@mail.gmail.com> Date: Sat, 8 Sep 2007 17:32:01 +1000 From: "Don Brown" To: "Struts Developers List" Subject: [s2] The death of the .action extension MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org A long time coming, it is now possible (and practical) to get rid of extensions altogether, hence the subject, the death of the .action extension. With WW-2163 [1], Struts can make the distinction between a setting that has Struts match all URL's, and one that only matches URLs with no extension, and furthermore, extension and no extension URLs can co-exist. Accordingly, I changed the default 'struts.action.extension' setting from 'action' to 'action,,' This allows the element in struts.xml to do what you would expect - let you define an action to handle directory URLs such as http://example.com/myapp/mynamespace/ In a future release, maybe 2.2, I'd like to get rid of the .action extension altogether. I think one of the key strengths of Struts 2 is its closeness to the HTTP protocol, and therefore, I think it has great potential to be a solid REST platform, an architectural style that leverages the features of HTTP rather than fight them. Here's to the death of the .action extension! :) Don [1] https://issues.apache.org/struts/browse/WW-2163 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org