Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 22890 invoked from network); 9 Jul 2008 13:46:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2008 13:46:03 -0000 Received: (qmail 49159 invoked by uid 500); 9 Jul 2008 13:46:04 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 49094 invoked by uid 500); 9 Jul 2008 13:46:04 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 49083 invoked by uid 99); 9 Jul 2008 13:46:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 06:46:03 -0700 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 andrew.jaquith@mac.com designates 17.148.16.97 as permitted sender) Received: from [17.148.16.97] (HELO asmtp022-bge351000.mac.com) (17.148.16.97) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 13:45:11 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [172.18.1.45] ([38.97.99.26]) by asmtp022.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K3Q00EQ3RGD3I10@asmtp022.mac.com> for jspwiki-dev@incubator.apache.org; Wed, 09 Jul 2008 06:43:27 -0700 (PDT) Sender: andrew.jaquith@mac.com Message-id: <48EDD54F-EA5E-407F-A497-4BE4A6A517A5@mac.com> From: Andrew Jaquith To: jspwiki-dev@incubator.apache.org In-reply-to: <77DE4C2F-1732-4C1D-A7C5-042AA21D6BD1@ecyrd.com> Subject: Re: REST-ful URLs [Was: url rewriting supported?] Date: Wed, 09 Jul 2008 09:43:21 -0400 References: <485919CA.9000902@ops.co.at> <02C1EF06-C327-4A18-B967-1C410894D3B5@mac.com> <48593648.7010409@ops.co.at> <485967B4.8010401@abstrakt.de> <485A0DB3.1040703@ops.co.at> <2B145127-837F-4C98-85D5-CBA35EB6FC14@mac.com> <4114C84B-6A48-4873-9A0E-CF3A19A5E7A3@ecyrd.com> <4D2C088D-4208-4D49-A85D-543E83FBE4D2@mac.com> <48728984.5020306@altheim.com> <926126B8-8BD2-46C9-92A9-86924F0555CE@ecyrd.com> <487310E7.9000801@altheim.com> <48732257.9070000@altheim.com> <89AF646B-A78E-492A-A3C8-B0D3FED7A368@ecyrd.com> <48732901.4050405@altheim.com> <9CBCDA80-A928-4E58-BC66-2831734C333E@mac.com> <4873E931.6070200@altheim.com> <77DE4C2F-1732-4C1D-A7C5-042AA21D6BD1@ecyrd.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org Janne -- I was expecting constructive -- rather than categorical -- comments from you. I did not perceive that you had many positive suggestions, and that disappoints me. I will respond in detail later, but not today. Andrew On Jul 9, 2008, at 3:01 AM, Janne Jalkanen wrote: >> I actually prefer using the '/' since it sideways fits into my >> existing >> URL schema. My schema: >> >> baseURL collectionHierarchy [objectId] action ['?' parameters] >> >> Janne's scheme (from what I understand): >> >> baseURL [collectionHierarchy/objectId] action ['?' parameters] > > Close, but no. The DefaultURLConstructor schema is > > baseURL action [collectionHierarchy/objectId] ['?' parameters]. > > What I am just arguing that the schema that you want *requires* > code. Or mod_rewrite. Can't be done with Stripes automatically. > >> be resolvable, which in this system means an absolute URL. If >> Stripes is >> capable of parsing an arbitrary depth collection hierarchy (or >> directory >> structure, if that's what we're essentially mirroring), then that's >> fine. > > No, it cannot. > >> I really hope we don't have to use some ugly syntax for that. I don't >> have a requirement for arbitrary depth at all, nor can I foresee >> that. >> It's just too ugly and complicated for most users. Wikis have been >> flat >> since their inception and I'm fine with them being flat. > > The point is that you don't have to use them. However, for some > cases, the flat namespace is a problem (like the Weblog plugin - > currently we have to rely on naming conventions to identify pages, > and you know how much of a mess that becomes. Would be much nicer > to just embed them as subpages for the current page.) > >> It's really hard to imagine that annotations could be less flexible >> than >> code. > > They are, since everything in them needs to be a static value. It > cannot be recomputed at runtime. > >> I don't see that as a barrier to adoption. And if we know we're >> going to >> using Stripes in 3.0 I can't see any reason not to *begin* to use >> it now. > > There is, since it requires a massive change to the internals of > JSPWiki (or else it won't be useful). > > /Janne