Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 55747 invoked from network); 4 May 2005 16:01:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 16:01:37 -0000 Received: (qmail 85248 invoked by uid 500); 4 May 2005 16:00:32 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 85061 invoked by uid 500); 4 May 2005 16:00:31 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 85048 invoked by uid 99); 4 May 2005 16:00:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jmikus@gmail.com designates 64.233.184.197 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 09:00:31 -0700 Received: by wproxy.gmail.com with SMTP id 36so370866wra for ; Wed, 04 May 2005 08:58:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MYXwvgN3XVCItYj8PoQWdJxFs9QU7eHdKfKBSC+5bupft/G48AXnyzw6Xx8ltJSC7hOFTfAOWG0p4Otg85LUv43IarBbLA84v6pjxFrgSKa0gxFkb9jhEXHAo0aBUz135AjkoYeU5/SeCMi6MoAiixYqh93LfHloDW8oIas2aUM= Received: by 10.54.83.1 with SMTP id g1mr457934wrb; Wed, 04 May 2005 08:58:09 -0700 (PDT) Received: by 10.54.45.24 with HTTP; Wed, 4 May 2005 08:58:09 -0700 (PDT) Message-ID: <1db11534050504085851a2b5e3@mail.gmail.com> Date: Wed, 4 May 2005 08:58:09 -0700 From: Michael Jouravlev Reply-To: Michael Jouravlev To: Struts Developers List Subject: Re: LookupDispatchAction question In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N If it is acceptable for you to specify input property in the action, then you can forgo this property altogether. You need it only for automatic error display. When input property is set, and validate is set to true, and your validation method returns errors, Struts queues errors into request object and forwards to your input path, without calling action class. Instead, you can do validation from the action class, and then depending on result or on something else, you can forward to a needed location. You can specify a whole bunch of them, be they input or not, in your element. You can also build new ActionForward object dynamically. Struts does not allow to change static ActionForward objects, as you already found. Michael. On 5/4/05, Tom Viers wrote: > Hello, >=20 > I am using a LookupDispatchAction to consolidate CRUD actions for a > particular element in my application. > As far a I can tell, only one input can be specified for this lookup > action. >=20 > Is there a way to dynamically specify the input forward based on which > action method was dispatched? >=20 > I have tried calling setInput() on the mapping, but an > IllegalStateException is thrown "Configuration is frozen". >=20 > Thanks in advance for the help, > Tom >=20 > Tom Viers > PICA Programming Team > tomv@pubpress.com > ext 2148 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org