Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 63167 invoked from network); 27 Aug 2004 06:12:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Aug 2004 06:12:19 -0000 Received: (qmail 70250 invoked by uid 500); 27 Aug 2004 06:12:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 70023 invoked by uid 500); 27 Aug 2004 06:12:07 -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 70008 invoked by uid 99); 27 Aug 2004 06:12:07 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received: from [146.64.10.166] (HELO wabe.csir.co.za) (146.64.10.166) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 26 Aug 2004 23:12:04 -0700 Received: from cs-emo.csir.co.za (cs-emo.csir.co.za [146.64.10.40]) by wabe.csir.co.za (8.12.5/8.12.5) with ESMTP id i7R6BjcK000603 for ; Fri, 27 Aug 2004 08:11:45 +0200 Received: from GW-EMO-MTA by cs-emo.csir.co.za with Novell_GroupWise; Fri, 27 Aug 2004 08:11:45 +0200 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Fri, 27 Aug 2004 08:11:24 +0200 From: "Derek Hohls" To: Subject: Re: xsp call url Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CSIR-MailScanner-Information: Please contact sys-admin at csir dot co dot za for more information X-CSIR-MailScanner: Found to be clean X-MailScanner-From: dhohls@csir.co.za X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Smith Flowscript is certainly an option... in fact, makes good sense here where, as you say, you effectively have different XSP as generators and hence efffectively different matches. You could have something like: function switch() { var userID = cocoon.request.get("userid"); var passwd = cocoon.request.get("passwd"); var thisKey = cocoon.request.get("key"); //and any others... if (thisKey == "login") { cocoon.sendPage ("xx/mail/login?userID=" + userID + "&passwd=" + passwd); } elsif (thisKey == "read") { cocoon.sendPage ("xx/mail/read?userID=" + userID + "&passwd=" + passwd); } elsif (thisKey == "send") { cocoon.sendPage ("xx/mail/send?userID=" + userID + "&passwd=" + passwd); } else { cocoon.sendPage ("no-key-match"); } } Then you could match patterns as below... with the addition of a "primary" match at the end, to call the above floescript (assuming the call is http://xx/mail?key=abc&userid=fred&passwd=joe) HTH. >>> orosmith@sify.com 2004/08/26 07:46:58 AM >>> In this case i cannot change the input. ie the parameters are passed from the url and it contains the keyword along with 2 other parameters. The keyword can be login,read,reply,send etc... Therefore the only access i have to the keyword is through the url. So i do something like or The generated xsp\'s are different for each keyword and the other parameters are also different. how can this branching to different uri\'s based on the keyword be done. Can i use flowscript to do this? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org