Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 84652 invoked from network); 1 Nov 2004 20:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Nov 2004 20:40:30 -0000 Received: (qmail 72363 invoked by uid 500); 1 Nov 2004 20:40:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 72317 invoked by uid 500); 1 Nov 2004 20:40:04 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 72304 invoked by uid 99); 1 Nov 2004 20:40:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hrabago@gmail.com designates 64.233.170.195 as permitted sender) Received: from [64.233.170.195] (HELO rproxy.gmail.com) (64.233.170.195) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 01 Nov 2004 12:40:03 -0800 Received: by rproxy.gmail.com with SMTP id 74so171937rnl for ; Mon, 01 Nov 2004 12:39:58 -0800 (PST) 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:references; b=S2FnBJpfL6bmYq4xEzFlkQHhVJ+meMWVKyErzzn/munrEfAi7Ftdi9oT2krptCNZrwPB+NN5GbM/MGZcbBNtYfiHj95Hqg4fQljADAjD2m93nH+5lRWBRjExN+uOj1y0mP+ReKi7F59tw/zy1qdtXFIARr8uh8LoytmkkXZDoJs= Received: by 10.38.165.67 with SMTP id n67mr994626rne; Mon, 01 Nov 2004 12:39:57 -0800 (PST) Received: by 10.38.72.38 with HTTP; Mon, 1 Nov 2004 12:39:57 -0800 (PST) Message-ID: <7b809eef04110112393bece8e4@mail.gmail.com> Date: Mon, 1 Nov 2004 14:39:57 -0600 From: Hubert Rabago Reply-To: Hubert Rabago To: Struts Users Mailing List Subject: Re: patterns for preloading forms and page scope data In-Reply-To: <9874503.1099341146413.JavaMail.root@chiron.lunarpages.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9874503.1099341146413.JavaMail.root@chiron.lunarpages.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, you can do this, and it'll work. You can set the "input" attribute to an action, and that action will be called when there are validation errors. Or, you can set "validate=false" as Frank suggested and call the form bean's "validate()" method yourself. If there are errors, you can do a "return mapping.getInputForward()" to forward the control to the page you set in the "input" attribute. Hubert On Mon, 1 Nov 2004 12:32:26 -0800 (PST), fzlists@omnytex.com wrote: > On Mon, November 1, 2004 3:26 pm, Gary S. Cuozzo said: > >> The forward attribute of your action mappings can point to another > >> action mapping. Would that do the trick for you? > > I suppose it would. How would struts know which mapping I wanted to go > > to in the case of validation errors? Would I just add a forward with > > the same name as the input form or something? > > Well, what you can do (and I don't think I'd recommend this, but just to discuss what's possible)... When a validation error occurrs, you get forwarded to the page named by the "input" attribute of the mapping... Unless I'm wrong )and I might be, I haven't tried this), you can specify another action mapping for this attribute (I actually was thinking of the element before, but I think this holds for "input" just the same). > > Frank > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org