Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 43668 invoked from network); 3 Dec 2004 17:24:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Dec 2004 17:24:43 -0000 Received: (qmail 86877 invoked by uid 500); 3 Dec 2004 17:24:04 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 86670 invoked by uid 500); 3 Dec 2004 17:24:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 86576 invoked by uid 99); 3 Dec 2004 17:23:59 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcjcu-commons-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Dec 2004 09:23:57 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CaH9p-0003ek-00 for ; Fri, 03 Dec 2004 18:23:49 +0100 Received: from adsl-68-94-55-89.dsl.rcsntx.swbell.net ([68.94.55.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Dec 2004 18:23:49 +0100 Received: from vin by adsl-68-94-55-89.dsl.rcsntx.swbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Dec 2004 18:23:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: commons-user@jakarta.apache.org From: Vic Subject: [chain] dispatch via lookup Date: Fri, 03 Dec 2004 11:23:40 -0600 Lines: 35 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-68-94-55-89.dsl.rcsntx.swbell.net User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Craig wrote quote in a struts dev thread on chain " In your standard processing chain, do something like this: What this does, in English, is: * Look up a command named "bar" in a catalog named "foo". * If such a command exists, delegate control to it (and do all the right stuff about filters if this is a chain) * If such a command does not exist, silently continue " end quote. I do not understand how to do above. Is that the declaration done in chain.xml? This assumes that I hard code the name of command I want to go to. (if I knew command at decleration I would just name it then, not look up). Is there a built in way of dispatching dynamicaly? for example: lookUpAndExecute("foo"); Hint? tia, .V --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org