Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 15441 invoked from network); 18 Jul 2006 20:15:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 20:15:11 -0000 Received: (qmail 84672 invoked by uid 500); 18 Jul 2006 20:15:01 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 84640 invoked by uid 500); 18 Jul 2006 20:15:01 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 84627 invoked by uid 99); 18 Jul 2006 20:15:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 13:15:01 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jmikus@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 13:15:00 -0700 Received: by py-out-1112.google.com with SMTP id s49so145018pyc for ; Tue, 18 Jul 2006 13:14:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sqvghx6oiSnTUTlW5GGvf+Qi7MeFJ4plAPwfIlEw0MvuS0LzN1crYHTCbj6nlXape5AiW20G0BdwTmWb52pVeophmjl3YxSScOm5p+ZitHhJE+aMy73DnRAN69bXp5a8qE5QRzrB4i9xZK9a8zj90WdMf7NIELTj9e21QsGMWAE= Received: by 10.35.96.11 with SMTP id y11mr6016302pyl; Tue, 18 Jul 2006 13:14:39 -0700 (PDT) Received: by 10.35.72.3 with HTTP; Tue, 18 Jul 2006 13:14:39 -0700 (PDT) Message-ID: <1db115340607181314x210eebf1v9304c39df87fe914@mail.gmail.com> Date: Tue, 18 Jul 2006 13:14:39 -0700 From: "Michael Jouravlev" To: "Struts Users Mailing List" Subject: Re: Forward to different Form/JSP from one action In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/18/06, billintx wrote: > I'd like to do something like this: > > input="/pages/selectTemplate.jsp"> > > > > > > Each template would require a different ActionForm? Depends on your design. Generally, no. > Should I create and put the ActionForm in the request manually? As you like. > Should I chain this with another action, so i'd have path="/editTemplate1.do" /> , where editTemplate1 action has the correct > ActionForm? Chaining like this is frowned upon and often can be avoided. "Input" property does not define an input page, it defines an error page. Struts architecture does not care where input is submitted from, all it cares is what's in the request. You should display /pages/selectTemplate.jsp with another action, so selectTemplate.jsp would be output page for that action, and editTemplateX.jsp would be output pages for EditAction. Again, there are NO input pages in Struts. See this for discussion: http://wiki.apache.org/struts/StrutsManualActionClasses --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org