Hi All, I have defined a form tag and assigned a form name like as follows..
<html:form method="POST" action="something.do"> <html:javascript formName="form1" staticJavascript="false" /> <input type="hidden" name="hiddenname"> <html:submit onClick="Next()"/> the problem is: when i submit the button. its giving error "object doesnot support property or method" from java script The javascript code: function Next() { document.form1.hiddenname.value="hai"; document.form1.action ="something.do"; document.form1.submit(); } Can any one tell me you it is behaving like this?.I have multiple forms declared in that page was it a problem?. Thanks & Regards Sudhakar Mindtree Consulting Private Ltd. Bangalore. Quote:- Imagination is more important than knowledge. --Albert Einstein DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]