Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 98136 invoked from network); 18 Sep 2003 07:15:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Sep 2003 07:15:40 -0000 Received: (qmail 95674 invoked by uid 500); 18 Sep 2003 07:15:04 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 95636 invoked by uid 500); 18 Sep 2003 07:15:04 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 95623 invoked from network); 18 Sep 2003 07:15:03 -0000 Received: from unknown (HELO paris) (130.83.27.43) by daedalus.apache.org with SMTP; 18 Sep 2003 07:15:03 -0000 Received: from bremen.dvs1.informatik.tu-darmstadt.de (bremen [130.83.27.69]) by paris (Postfix) with ESMTP id 8E23EFE46 for ; Thu, 18 Sep 2003 09:15:15 +0200 (MET DST) Received: from haul by bremen.dvs1.informatik.tu-darmstadt.de with local (Exim 3.36 #1 (Debian)) id 19zt0V-0001Gm-00 for ; Thu, 18 Sep 2003 09:15:15 +0200 Date: Thu, 18 Sep 2003 09:15:15 +0200 To: users@cocoon.apache.org Subject: Re: Parameters Message-ID: <20030918071515.GC918@bremen.dvs1.informatik.tu-darmstadt.de> Reply-To: haul@informatik.tu-darmstadt.de References: <001201c37d32$19f04780$b40a0a0a@Portatile1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001201c37d32$19f04780$b40a0a0a@Portatile1> Organization: Databases and Distributed Systems Group, Darmstadt University of Technology User-Agent: Mutt/1.5.4i From: Christian Haul X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 17.Sep.2003 -- 05:41 PM, Diego Cattelan wrote: > Hi > I'm new to Cocoon system and I don't understand how to pass parameters from > sitemap: > sitemap.xmap: > .... > > > > > > > > > .... > auth.xsp: > xmlns:xsp="http://apache.org/xsp" > xmlns:esql="http://apache.org/cocoon/SQL/v2" > xmlns:xsp-request="http://apache.org/xsp/request/2.0"> > > > username = Alright, xsp-request:get-parameter refers to request parameters (i.e. submitted with a form) but you're interested in sitemap parameters. If you prefer to use a logicsheet to read them, use the util logicsheet tag if you prefer to do in in JAVA (you shouldn't), it's parameters.getParameter("username", "default") See Apache Avalon Framework API docs on Parameter for all ways to access parameters and their implications. I'm afraid that input modules don't have access to sitemap parameters. Chris. -- C h r i s t i a n H a u l haul@informatik.tu-darmstadt.de fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org