Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 32075 invoked from network); 10 Nov 2003 18:04:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Nov 2003 18:04:37 -0000 Received: (qmail 82188 invoked by uid 500); 10 Nov 2003 18:03:29 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 82139 invoked by uid 500); 10 Nov 2003 18:03:29 -0000 Mailing-List: contact struts-user-help@jakarta.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 struts-user@jakarta.apache.org Received: (qmail 82080 invoked from network); 10 Nov 2003 18:03:28 -0000 Received: from unknown (HELO madmail02.fiskars.com) (64.73.39.52) by daedalus.apache.org with SMTP; 10 Nov 2003 18:03:28 -0000 Received: from madmail01.fiskars.com ([10.5.50.218]) by madmail02.fiskars.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 10 Nov 2003 12:03:30 -0600 Received: from fiskars.com ([10.5.200.72]) by madmail01.fiskars.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 10 Nov 2003 12:03:30 -0600 Message-ID: <3FAFD2F2.2030000@fiskars.com> Date: Mon, 10 Nov 2003 12:03:30 -0600 From: Brice Ruth Organization: Fiskars Brands, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Refer to an by name ? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Nov 2003 18:03:30.0447 (UTC) FILETIME=[F2B5F9F0:01C3A7B4] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The form name attribute is set to the name of the ActionForm that your Action takes as its input. This is done automagically, without specifying a name="" attribute in the html:form tag itself. This is to support javascript validation, I believe. Gleichmann, Mario wrote: >Dear Struts-Community, > >assumed we use a composite-view, which is composed by multiple 'tiles' >delivered by several Design-Team members. >Every of this tile is free to define it's own form-areas () >and appropriate action(s). >Furthermore we have a 'Menu-Tile' which Buttons/Links refers to certain >tiles in the content area. Clickin' such a Link should submit a certain >Action (using more than one Action within a form and therefore a >DispatchAction) in a certain form (including all the properties within the >form). > >This could work like this ... > > >... > >... > >... > > MENU >
>
> Add >
> Delete >
> onclick="callAction('fix');" /> > >... > >... >
> >My Problem is the fact, that i have to refer to a certain form by an index >(document.forms[0]...) but not by name (document.forms[myFormName]). >Since we have more than one form in the content area (and this could change >dynamically, so i do not know how many form definitions we have after all) >it is not assured that i always refer for sure to the same form by using an >index. >If i could assign a name to a form-definition (like
name="myFormName"...> - see 'pure HTML form-tag attributes') than the >position of the form within the content-area would be irelevant since i >refer to that certain form by using its name, like ... > > > >function callAction(targetAction, formName) { > document.forms[0].dispatch.value=targetAction; > document.forms[0].submit(); >} > >... > >... > Loeschen >... > > >...but the tag does not offer an attribute to set a forms >name ... >Is there any chance to achive this (refer to a form by name but not by >index) or may be another / better solution for this problem? Any help is >appreciated !!! :o) > >Thanks in adcance :o)) > > >Mario Gleichmann > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org