You can have form elements with the same name. But it won't do what you want. Upon form submission only the last (I believe) input element value (of those with the same name) will be submitted; but that's probably browser dependent. Displayed, or not, doesn't matter...
-- Voytek Jarnot "Racing makes heroin addiction look like a vague longing for something salty." - Peter Egan > -----Original Message----- > From: Erich Kilmer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 15, 2004 9:16 AM > To: [EMAIL PROTECTED] > Subject: Can multiple inputs have the same property name or > should they > all be unique? > > > I have a page that shows widget data. This data lives on 4 > different tabbed sections. > Also above the tabbed region is a pull down that allows user > to choose from 4 widget types. > One of the tabbed areas changes for each of the different > types using DHTML. This dynamic tab has a couple of inputs in > common and several which are not. > Since I am using DHTML, all of the inputs exist on the page > at the same time. Depending on the widget type selected some > inputs are visible and others are display:none. > My first question is this: for the inputs that are in common > in the dynamic tabbed region can they all reference by the > same "name" in the action form? Or is this dangerous? > Also if this is possible when you first intialize the page > from the action form if more one than input has the same > name, will they all be initialized from the form by Struts? > Or should each input have a unique name? > I know this seems weird but this is the design issues that I > am struggling with for this project. > TIA > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]