Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 89202 invoked by uid 500); 1 Oct 2001 09:21:19 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 89191 invoked from network); 1 Oct 2001 09:21:19 -0000 From: "Piroumian, Konstantin" To: cocoon-dev@xml.apache.org Message-ID: <001f01c14a5a$730230c0$9d0a000a@flagship.ru> References: Subject: [C2] Environment.getAction() method Date: Mon, 1 Oct 2001 13:21:27 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, C2ers! Can anybody explain me why the getAction() method is in Environment interface? Why the action param name (cocoon-action) is hard-coded and cannot be configured? I'd like to have a possibility to select (filter) actions to be performed by a more flexible way. I'd propose to make the action selection mechanism configurable in sitemap. E.g.: So, there could be different ways of determining if the action matches the current request. Example: 1. URL: http://host/login - uses the URL itself to determine the action and matches the 2. URL: http://host/cart?action=addItem - uses URL param to select an action and matches More complicated behavior is also possible (matching actions by wildcards, regular expressions, etc.). Are there any comments, future plans or something related to actions? Design patterns of developing complicated sitemaps with a lot of actions or so would be fine. Best regards, Konstantin Piroumian Sr. Software engineer Protek Flagship LLC Phone: + 7 095 795 0520 (add. 1288) Fax: + 7 095 795 0525 E-mail: kpiroumian@flagship.ru http://www.protek.com --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org