>- I'm not sure that order is guaranteed when you have two params with the same name at time they are submitted.
I thought multiple parameters with the same name is how Struts did actions with array-typed properties. That's what's done on the File Uploads How-To.[1] Is that example potentially broken, then? ~Dan [1]http://struts.apache.org/2.x/docs/how-do-we-upload-files.html -----Original Message----- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 2:49 AM To: Struts Users Mailing List Subject: Re: Using Javascript to change struts-generated forms Yes, create a custom theme to get out of that table. css_xhtml may work immediately. Potential issues: - Your current approach is also going to create nodes with duplicate ids. This may confuse some browsers badly. At least remove the ID from the template - I'm not sure that order is guaranteed when you have two params with the same name at time they are submitted. Ensure you can't get a mismatch between doctype/doc name when uploading multuple files. ie. doctype[1] is associated with docname[0]. It seems vulnerable to browser-dependent processing of the form. You may be safer generating the DOM nodes with JS programmatically rather than doing a clone. That way you'll be able to assign unique ID's for each node, add listeners for validation and use array notation in your field names to guarantee order for struts eg. "doctype[1]". hope that helps, Jeromy Evans -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP"). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]