I am new to struts, how can I use client javascipt inside html:form ? when i run my test.jsp with html:form and javascript, and get following error, what is that mean ? tks everyone's help in advance. john
org.apache.jasper.JasperException: Attribute OnSubmit invalid for tag form according to TLD <head> <script language="javascript"> function showme() { alert("what is wrong"); return false; } </script> </head> <%@ taglib uri="/html" prefix="html" %> <%@ taglib uri="/bean" prefix="bean" %> <html:form action="/partsearchinput" OnSubmit="return showme()"> <table> <tr><td><br></td></tr> <tr> <td><bean:message key="label.search.part"/>:</td> <td><html:text property="part"/> <html:errors property="part"/> </td> </tr> <tr><td><html:submit/></td></tr> </table> </html:form> --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.